Nix: Skipping unit tests when installing a Haskell package
9
votes
3
answers
5016
views
I'm using Nix to install packages under my home (so no binary packages) on a shared host with limited resources. I'm trying to install git-annex. When building one of its dependencies, haskell-lens, the unit tests consume so much memory that they get killed and the installation fails.
Is there a way to skip the unit tests to get the package installed? I looked at the Cabal builder and
haskell-packages.nix
and it seems to me that you could disable the tests by setting enableCheckPhase
to false. I tried the following in ~/.nixpkgs/config.nix
, but the tests are still run:
{
packageOverrides = pkgs: with pkgs; {
# ...other customizations...
haskellPackages = haskellPackages.override {
extension = self : super : {
self.lens = self.disableTest self.lens;
};
};
};
}
Asked by Miikka
(525 rep)
Nov 8, 2014, 01:24 PM
Last activity: Jan 28, 2018, 04:29 PM
Last activity: Jan 28, 2018, 04:29 PM