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-03-27 18:54:17 +01:00
|
|
|
let version = "0.12pre11304"; in
|
2007-09-06 22:45:36 +02:00
|
|
|
|
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 {
|
2008-03-27 18:54:17 +01:00
|
|
|
url = "http://nixos.org/releases/nix/nix-${version}-6hxl2ybs/nix-${version}.tar.bz2";
|
|
|
|
sha256 = "8f33687ed70d4e1453cf62c0a9c5010cc49ed787794320ef94e9ead740fd042b";
|
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}
|
|
|
|
--with-aterm=${aterm} --with-bdb=${db4} --with-bzip2=${bzip2}
|
2008-01-30 01:56:10 +01:00
|
|
|
--disable-init-state
|
|
|
|
'';
|
2006-11-17 13:49:46 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The Nix Deployment System";
|
2007-10-19 13:38:58 +02:00
|
|
|
homepage = http://nix.cs.uu.nl/;
|
2007-11-05 12:22:37 +01:00
|
|
|
license = "LGPL";
|
2006-11-17 13:49:46 +01:00
|
|
|
};
|
|
|
|
}
|