Created
January 25, 2015 22:39
-
-
Save hlian/0cad06735aa03d87caf0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
packageOverrides = pkgs: | |
let | |
haskellPackages = pkgs.haskell-ng.packages; | |
dontCheck = pkgs.haskell-ng.lib.dontCheck; | |
mapper = (p: dontCheck p); | |
in { | |
haskellEnv = haskellPackages.ghcHEAD.ghcWithPackages (p: | |
(map mapper [ p.lens ]) ++ [ p.cabal2nix ] | |
); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a working Haskell Nix environment that installs lens and whatever else you want without their testing dependencies --- which seems like it should be the default; I want to use wreq without installing Snap to run its tests!
Some things to note:
x: y: z: expr
let x = expr; y = expr; in expr
nixpkgs
repo on GitHub in order to type these long names, likepkgs.haskell-ng.lib.dontCheck
.-rpath
on OS X Yosemite. It looks like OS X needs some love in the Nix world. I'll try again on Linux in the future.virtualenv
that you can program. Nix: ★★★★★