[Nix-dev] Customizing packages via overrideDerivation
Marc Weber
marco-oweber at gmx.de
Thu Oct 17 22:50:45 CEST 2013
> src = "/root/sleuthkit-4.1.2";
Is nix fine with directories? Long time ago this caused problems if I
remember correctly. By problem I mean nix didn't recognize that the
contents change.
In your case try the following:
all-packages.nix:
foo = calPackage .. ; // regular line
myfoo= overrideDerivation foo (attrs: { .. });
Then try nix-build -A myfoo /etc/nixos/nixpkgs (or wherever you have
checked out nixpkgs.
This way its easier/faster to test. And you eliminate potential problems
such as two versions of the same package getting installed to system
PATH - in which case only one can win.
I didn't try your code - but it looked close to be fine.
Marc Weber
More information about the nix-dev
mailing list