-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Haskell package servant doesn't compile on darwin due to python2.7-future #22590
Labels
Comments
cc @Profpatsch |
Have you tried just removing that linux restriction for |
@Profpatsch I had not. I just tried it and it seems to build without error. should I make a PR to that effect? |
Yes! |
Dridus
pushed a commit
to Dridus/nixpkgs
that referenced
this issue
Feb 15, 2017
7 tasks
Profpatsch
pushed a commit
that referenced
this issue
Feb 15, 2017
Per #22590, `haskellPackages.servant` and by extension any package which transitively depends on `pythonX.Y-future` will fail to build on darwin even though there's apparently no reason why it can't be built there.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
The servant package has an override in configuration-common.nix which tacks on documentation building with sphinx. Sphinx depends via some path on python2.7-future which has only linux mentioned as a viable platform, so the whole build bombs during validation on darwin.
I had trouble overriding this by using
packageOverrides
andhaskell.lib.overrideCabal
but couldn't get thepostInstall
to be overridden. I tried this specifically:I did have success
cabal2nix
ing servant and overriding servant with that copy, like this:It would be really swell if it was possible to disable the doc build like you can with other haskell packages using
dontHaddock
or similar, though just having it not blow up and not generate the docs would be fine in my view - the docs are available at http://haskell-servant.readthedocs.io/en/stable/Steps to reproduce
nix-build '<nixpkgs>' -A haskellPackages.servant
fails with:Technical details
The text was updated successfully, but these errors were encountered: