9f206fb8f9
svn path=/nixpkgs/trunk/; revision=13503
31 lines
827 B
Nix
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.13pre13403"; in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "nix-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://nixos.org/releases/nix/nix-${version}-a84h5996/nix-${version}.tar.bz2";
|
|
sha256 = "81169cc6448fff2e1f72464fb537d6db0d386d303869346fea2433b04181cc7b";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|