Added possibility to use non-default Nix.

svn path=/nixpkgs/trunk/; revision=9663
This commit is contained in:
Michael Raskin 2007-11-13 15:52:16 +00:00
parent 1627b94ee7
commit 29e0bc3103
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null
, storeDir ? "/nix/store"
, stateDir ? "/nix/var"
,src
}:
stdenv.mkDerivation {
name = "nix-custom";
inherit src;
buildInputs = [perl curl openssl];
configureFlags = "
--with-store-dir=${storeDir} --localstatedir=${stateDir}
--with-aterm=${aterm} --with-bdb=${db4} --with-bzip2=${bzip2}
--disable-init-state";
meta = {
description = "The Nix Deployment System";
homepage = http://nix.cs.uu.nl/;
license = "LGPL";
};
}

View File

@ -4524,6 +4524,12 @@ rec {
db4 = db45;
};
nixCustomFun = src: (import ../tools/package-management/nix/custom.nix {
inherit fetchurl stdenv perl curl bzip2 openssl src;
aterm = aterm242fixes;
db4 = db45;
});
ntfs3g = import ../misc/ntfs-3g {
inherit fetchurl stdenv fuse pkgconfig;
};