nixpkgs/pkgs/tools/package-management/nix/unstable.nix
Eelco Dolstra 37b7f0ffeb * The latest and greatest.
svn path=/nixpkgs/trunk/; revision=12733
2008-08-27 09:48:41 +00:00

31 lines
827 B
Nix

{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null
, storeDir ? "/nix/store"
, stateDir ? "/nix/var"
, supportOldDBs ? true
}:
let version = "0.12pre12726"; in
stdenv.mkDerivation {
name = "nix-${version}";
src = fetchurl {
url = "http://nixos.org/releases/nix/nix-${version}-nsb81cj5/nix-${version}.tar.bz2";
sha256 = "01c25627f8d4d924bef17ed07b8b0ddb8a2634529adbb2605b91b571ab26a47c";
};
buildInputs = [perl curl openssl];
configureFlags = ''
--with-store-dir=${storeDir} --localstatedir=${stateDir}
--with-aterm=${aterm} --with-bzip2=${bzip2}
${if supportOldDBs then "--with-bdb=${db4}" else "--disable-old-db-compat"}
--disable-init-state
'';
meta = {
description = "The Nix Deployment System";
homepage = http://nixos.org/;
license = "LGPL";
};
}