Skip to content

Instantly share code, notes, and snippets.

@bennofs
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennofs/0d633b10199feed3212d to your computer and use it in GitHub Desktop.
Save bennofs/0d633b10199feed3212d to your computer and use it in GitHub Desktop.
HaskellNG: override hakyll without patch
let
nixpkgs = import <nixpkgs> {};
haskellNg = nixpkgs.pkgs.haskell-ng;
# hopefully temporary, but ghc 7.8 fails because of non-deterministic builds (of GHC)
ghc710 = haskellNg.packages.ghc7101;
fixedHakyll = ghc710.hakyll.override { inherit (ghc710) mkDerivation; };
pkg = ghc710.callPackage ./. {
hakyll = fixedHakyll;
};
in nixpkgs.lib.overrideDerivation pkg.env (old:{
buildInputs = old.buildInputs ++ [ghc710.cabal-install];
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment