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"
|
|
|
|
}:
|
|
|
|
|
2007-09-06 22:45:36 +02:00
|
|
|
let version = "0.11pre9253"; in
|
|
|
|
|
2006-11-17 13:49:46 +01:00
|
|
|
stdenv.mkDerivation {
|
2007-09-06 22:45:36 +02:00
|
|
|
name = "nix-${version}";
|
2006-11-17 13:49:46 +01:00
|
|
|
|
2007-08-14 18:41:41 +02:00
|
|
|
src = fetchurl {
|
2007-09-06 22:45:36 +02:00
|
|
|
url = "http://nix.cs.uu.nl/dist/nix/nix-${version}/nix-${version}.tar.bz2";
|
|
|
|
md5 = "d060c66394b921373430f21dac1c2c4d";
|
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
|
|
|
|
|
|
|
configureFlags = "
|
|
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
|
|
|
--with-aterm=${aterm} --with-bdb=${db4} --with-bzip2=${bzip2}
|
|
|
|
--disable-init-state";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The Nix Deployment System";
|
|
|
|
};
|
|
|
|
}
|