nixpkgs/pkgs/tools/package-management/nix/unstable.nix
Eelco Dolstra a4a95f2962 * Latest stable, unstable releases.
svn path=/nixpkgs/trunk/; revision=13365
2008-11-21 17:06:49 +00:00

32 lines
827 B
Nix

{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null
, storeDir ? "/nix/store"
, stateDir ? "/nix/var"
, supportOldDBs ? true
}:
let version = "0.13pre13362"; in
stdenv.mkDerivation {
name = "nix-${version}";
src = fetchurl {
url = "http://nixos.org/releases/nix/nix-${version}-s1rvr333/nix-${version}.tar.bz2";
sha256 = "cf80f5c98c61ec4e271c2a7bde1fb3d36318d1ae8c49fdf91818af150a5d0b47";
};
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";
};
}