2010-02-05 10:41:24 +00:00
|
|
|
{ stdenv, fetchurl, aterm, perl, curl, bzip2, openssl ? null
|
2004-03-31 10:19:01 +00:00
|
|
|
, storeDir ? "/nix/store"
|
|
|
|
, stateDir ? "/nix/var"
|
|
|
|
}:
|
2004-02-16 16:54:01 +00:00
|
|
|
|
2009-11-05 23:47:53 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2010-03-17 12:16:03 +00:00
|
|
|
name = "nix-0.15";
|
2006-10-11 15:31:52 +00:00
|
|
|
|
2004-02-16 15:40:55 +00:00
|
|
|
src = fetchurl {
|
2010-03-17 12:16:03 +00:00
|
|
|
url = "http://hydra.nixos.org/build/326788/download/4/${name}.tar.bz2";
|
|
|
|
sha256 = "2d125e75dba387075a8bd443926d7fc6752e54cc9a21c2ef32e44fffc445a8ce";
|
2004-02-16 15:40:55 +00:00
|
|
|
};
|
2009-11-05 23:47:53 +00:00
|
|
|
|
2010-02-05 10:41:24 +00:00
|
|
|
buildInputs = [ perl curl openssl ];
|
2006-10-11 15:31:52 +00:00
|
|
|
|
2010-02-05 10:41:24 +00:00
|
|
|
configureFlags =
|
|
|
|
''
|
|
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
|
|
|
--with-aterm=${aterm} --with-bzip2=${bzip2}
|
2010-04-21 20:07:26 +00:00
|
|
|
${stdenv.lib.optionalString (openssl != null) "--with-openssl=${openssl}"}
|
2010-02-05 10:41:24 +00:00
|
|
|
--disable-init-state
|
|
|
|
'';
|
2006-10-11 16:45:55 +00:00
|
|
|
|
2009-11-05 23:47:53 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
passthru = { inherit aterm; };
|
|
|
|
|
2006-10-11 16:45:55 +00:00
|
|
|
meta = {
|
|
|
|
description = "The Nix Deployment System";
|
2008-06-24 09:39:19 +00:00
|
|
|
homepage = http://nixos.org/;
|
2007-11-05 11:22:37 +00:00
|
|
|
license = "LGPL";
|
2006-10-11 16:45:55 +00:00
|
|
|
};
|
2004-02-16 15:40:55 +00:00
|
|
|
}
|