2010-08-17 17:21:42 +02:00
|
|
|
{ stdenv, fetchurl, perl, curl, bzip2, openssl ? null
|
2004-03-31 12:19:01 +02:00
|
|
|
, storeDir ? "/nix/store"
|
|
|
|
, stateDir ? "/nix/var"
|
|
|
|
}:
|
2004-02-16 17:54:01 +01:00
|
|
|
|
2009-11-06 00:47:53 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-08-17 17:21:42 +02:00
|
|
|
name = "nix-0.16";
|
|
|
|
|
2004-02-16 16:40:55 +01:00
|
|
|
src = fetchurl {
|
2010-08-17 17:21:42 +02:00
|
|
|
url = "http://nixos.org/releases/nix/${name}/build/565033/download/4/${name}.tar.bz2";
|
|
|
|
sha256 = "0648ed285f263a2cc5a704c4aee70ec5f0415c3749f540c2691a2a613492c7c3";
|
2004-02-16 16:40:55 +01:00
|
|
|
};
|
2009-11-06 00:47:53 +01:00
|
|
|
|
2010-08-17 17:21:42 +02:00
|
|
|
buildNativeInputs = [ perl ];
|
|
|
|
buildInputs = [ curl openssl ];
|
2006-10-11 17:31:52 +02:00
|
|
|
|
2010-02-05 11:41:24 +01:00
|
|
|
configureFlags =
|
|
|
|
''
|
|
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
2010-08-17 17:21:42 +02:00
|
|
|
--with-bzip2=${bzip2}
|
2010-02-05 11:41:24 +01:00
|
|
|
--disable-init-state
|
2010-08-17 17:21:42 +02:00
|
|
|
CFLAGS=-O3 CXXFLAGS=-O3
|
2010-02-05 11:41:24 +01:00
|
|
|
'';
|
2006-10-11 18:45:55 +02:00
|
|
|
|
2010-08-17 17:21:42 +02:00
|
|
|
crossAttrs = {
|
|
|
|
configureFlags =
|
|
|
|
''
|
|
|
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
|
|
|
--with-bzip2=${bzip2.hostDrv}
|
|
|
|
--disable-init-state
|
|
|
|
CFLAGS=-O3 CXXFLAGS=-O3
|
|
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
};
|
2009-11-06 00:47:53 +01:00
|
|
|
|
2012-01-23 13:34:07 +01:00
|
|
|
#doCheck = true;
|
2009-11-06 00:47:53 +01:00
|
|
|
|
2006-10-11 18:45:55 +02:00
|
|
|
meta = {
|
|
|
|
description = "The Nix Deployment System";
|
2008-06-24 11:39:19 +02:00
|
|
|
homepage = http://nixos.org/;
|
2010-08-17 17:21:42 +02:00
|
|
|
license = "LGPLv2+";
|
2006-10-11 18:45:55 +02:00
|
|
|
};
|
2004-02-16 16:40:55 +01:00
|
|
|
}
|