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