[Nix-dev] Override package in local default.nix

Alfredo Di Napoli alfredo.dinapoli at gmail.com
Fri Jul 25 11:36:33 CEST 2014


Hello guys,

I'm trying to get a clean nix-shell for haskell's ghc783.
I have tried my usual "blueprints", but it's failing with:

Running Haddock for hscolour-1.20.3...
Preprocessing library hscolour-1.20.3...
haddock: unrecognized option `--package=hscolour-1.20.3'
unrecognized option `--verbose'
Usage: haddock [OPTION...] file...

I have found a log on an IRC conversation on internet which suggest do add
hyperlinkSource = false in my project file. Not having any idea of how to
 do that, I've
tried to override the cabal package to override that flag. My attempt is
this:

https://gist.github.com/adinapoli/67b2689c460d24bd1667

Even though this compiles fine, it seems to be completely ignored by
nix-shell, and
running "nix-shell --pure" doesn't change the final outcome.

What I'm doing wrong?
Thanks!
Alfredo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140725/e2cefe39/attachment.html 


More information about the nix-dev mailing list