2007-03-01 16:44:23 +01:00
|
|
|
{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null
|
2006-11-17 13:49:46 +01:00
|
|
|
, storeDir ? "/nix/store"
|
|
|
|
, stateDir ? "/nix/var"
|
2008-06-24 11:39:19 +02:00
|
|
|
, supportOldDBs ? true
|
2006-11-17 13:49:46 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-03-26 14:39:40 +01:00
|
|
|
name = "nix-0.13pre14722";
|
2006-11-17 13:49:46 +01:00
|
|
|
|
2007-08-14 18:41:41 +02:00
|
|
|
src = fetchurl {
|
2009-03-26 14:39:40 +01:00
|
|
|
url = http://hydra.nixos.org/build/6757/download/1/nix-0.13pre14722.tar.bz2;
|
|
|
|
sha256 = "1459dd526a7805dedee91033313da4da249bf2ef13eb89c8c2a64e326464f68b";
|
2007-08-14 18:41:41 +02:00
|
|
|
};
|
2007-08-11 12:34:07 +02:00
|
|
|
|
2007-03-01 16:44:23 +01:00
|
|
|
buildInputs = [perl curl openssl];
|
2006-11-17 13:49:46 +01:00
|
|
|
|
2008-01-30 01:56:10 +01:00
|
|
|
configureFlags = ''
|
2006-11-17 13:49:46 +01:00
|
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
2008-06-24 11:39:19 +02:00
|
|
|
--with-aterm=${aterm} --with-bzip2=${bzip2}
|
|
|
|
${if supportOldDBs then "--with-bdb=${db4}" else "--disable-old-db-compat"}
|
2008-01-30 01:56:10 +01:00
|
|
|
--disable-init-state
|
|
|
|
'';
|
2006-11-17 13:49:46 +01:00
|
|
|
|
2009-01-29 17:08:03 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2009-03-09 16:27:23 +01:00
|
|
|
passthru = { inherit aterm; };
|
|
|
|
|
2006-11-17 13:49:46 +01:00
|
|
|
meta = {
|
|
|
|
description = "The Nix Deployment System";
|
2008-06-24 11:39:19 +02:00
|
|
|
homepage = http://nixos.org/;
|
2007-11-05 12:22:37 +01:00
|
|
|
license = "LGPL";
|
2006-11-17 13:49:46 +01:00
|
|
|
};
|
|
|
|
}
|