2008-01-01 12:30:41 +01:00
|
|
|
{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null
|
2004-03-31 12:19:01 +02:00
|
|
|
, storeDir ? "/nix/store"
|
|
|
|
, stateDir ? "/nix/var"
|
2008-11-21 18:06:49 +01:00
|
|
|
, supportOldDBs ? true
|
2004-03-31 12:19:01 +02:00
|
|
|
}:
|
2004-02-16 17:54:01 +01:00
|
|
|
|
2009-11-06 00:47:53 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nix-0.13";
|
2006-10-11 17:31:52 +02:00
|
|
|
|
2004-02-16 16:40:55 +01:00
|
|
|
src = fetchurl {
|
2009-11-06 00:47:53 +01:00
|
|
|
url = "http://hydra.nixos.org/build/118589/download/4/${name}.tar.bz2";
|
|
|
|
sha256 = "6da44cacb7185e67dff39a2339c42f9c722081bac0dc593565bd89674beb1f94";
|
2004-02-16 16:40:55 +01:00
|
|
|
};
|
2009-11-06 00:47:53 +01:00
|
|
|
|
2008-01-01 12:30:41 +01:00
|
|
|
buildInputs = [perl curl openssl];
|
2006-10-11 17:31:52 +02:00
|
|
|
|
2008-11-21 18:06:49 +01:00
|
|
|
configureFlags = ''
|
2006-10-11 17:31:52 +02:00
|
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
2008-11-21 18:06:49 +01:00
|
|
|
--with-aterm=${aterm} --with-bzip2=${bzip2}
|
|
|
|
${if supportOldDBs then "--with-bdb=${db4}" else "--disable-old-db-compat"}
|
|
|
|
--disable-init-state
|
|
|
|
'';
|
2006-10-11 18:45:55 +02:00
|
|
|
|
2009-11-06 00:47:53 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = { inherit aterm; };
|
|
|
|
|
2006-10-11 18:45:55 +02: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-10-11 18:45:55 +02:00
|
|
|
};
|
2004-02-16 16:40:55 +01:00
|
|
|
}
|