2010-08-17 15:21:42 +00:00
|
|
|
{ stdenv, fetchurl, 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-08-17 15:21:42 +00:00
|
|
|
name = "nix-0.16";
|
|
|
|
|
2004-02-16 15:40:55 +00:00
|
|
|
src = fetchurl {
|
2010-08-17 15:21:42 +00:00
|
|
|
url = "http://nixos.org/releases/nix/${name}/build/565033/download/4/${name}.tar.bz2";
|
|
|
|
sha256 = "0648ed285f263a2cc5a704c4aee70ec5f0415c3749f540c2691a2a613492c7c3";
|
2004-02-16 15:40:55 +00:00
|
|
|
};
|
2009-11-05 23:47:53 +00:00
|
|
|
|
2010-08-17 15:21:42 +00:00
|
|
|
buildNativeInputs = [ perl ];
|
|
|
|
buildInputs = [ 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}
|
2010-08-17 15:21:42 +00:00
|
|
|
--with-bzip2=${bzip2}
|
2010-02-05 10:41:24 +00:00
|
|
|
--disable-init-state
|
2010-08-17 15:21:42 +00:00
|
|
|
CFLAGS=-O3 CXXFLAGS=-O3
|
2010-02-05 10:41:24 +00:00
|
|
|
'';
|
2006-10-11 16:45:55 +00:00
|
|
|
|
2010-08-17 15:21:42 +00:00
|
|
|
crossAttrs = {
|
|
|
|
configureFlags =
|
|
|
|
''
|
|
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
|
|
|
--with-bzip2=${bzip2.hostDrv}
|
|
|
|
--disable-init-state
|
|
|
|
CFLAGS=-O3 CXXFLAGS=-O3
|
|
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
};
|
2009-11-05 23:47:53 +00:00
|
|
|
|
2010-08-17 15:21:42 +00:00
|
|
|
doCheck = true;
|
2009-11-05 23:47:53 +00:00
|
|
|
|
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/;
|
2010-08-17 15:21:42 +00:00
|
|
|
license = "LGPLv2+";
|
2006-10-11 16:45:55 +00:00
|
|
|
};
|
2004-02-16 15:40:55 +00:00
|
|
|
}
|