2008-01-01 11:30:41 +00:00
|
|
|
{ stdenv, fetchurl, aterm, db4, perl, curl, bzip2, openssl ? null
|
2004-03-31 11:19:01 +01:00
|
|
|
, storeDir ? "/nix/store"
|
|
|
|
, stateDir ? "/nix/var"
|
2008-11-21 17:06:49 +00:00
|
|
|
, supportOldDBs ? true
|
2004-03-31 11:19:01 +01:00
|
|
|
}:
|
2004-02-16 16:54:01 +00:00
|
|
|
|
2004-03-29 18:23:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2008-11-21 17:06:49 +00:00
|
|
|
name = "nix-0.12";
|
2006-10-11 16:31:52 +01:00
|
|
|
|
2004-02-16 15:40:55 +00:00
|
|
|
src = fetchurl {
|
2008-11-21 17:06:49 +00:00
|
|
|
url = http://nixos.org/releases/nix/nix-0.12/nix-0.12.tar.bz2;
|
|
|
|
sha256 = "44454670876ad0e96d551c94ba993903b84594ccf57fef17bc2d92b1f6b155b1";
|
2004-02-16 15:40:55 +00:00
|
|
|
};
|
2006-10-11 16:31:52 +01:00
|
|
|
|
2008-01-01 11:30:41 +00:00
|
|
|
buildInputs = [perl curl openssl];
|
2006-10-11 16:31:52 +01:00
|
|
|
|
2008-11-21 17:06:49 +00:00
|
|
|
configureFlags = ''
|
2006-10-11 16:31:52 +01:00
|
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
2008-11-21 17:06:49 +00:00
|
|
|
--with-aterm=${aterm} --with-bzip2=${bzip2}
|
|
|
|
${if supportOldDBs then "--with-bdb=${db4}" else "--disable-old-db-compat"}
|
|
|
|
--disable-init-state
|
|
|
|
'';
|
2006-10-11 17:45:55 +01: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-10-11 17:45:55 +01:00
|
|
|
};
|
2004-02-16 15:40:55 +00:00
|
|
|
}
|