* Nix 0.16.

svn path=/nixpkgs/trunk/; revision=23208
This commit is contained in:
Eelco Dolstra 2010-08-17 15:21:42 +00:00
parent 4cbec5ca20
commit f5f32a5b4b
2 changed files with 22 additions and 12 deletions

View File

@ -1,33 +1,43 @@
{ stdenv, fetchurl, aterm, perl, curl, bzip2, openssl ? null
{ stdenv, fetchurl, perl, curl, bzip2, openssl ? null
, storeDir ? "/nix/store"
, stateDir ? "/nix/var"
}:
stdenv.mkDerivation rec {
name = "nix-0.15";
name = "nix-0.16";
src = fetchurl {
url = "http://hydra.nixos.org/build/326788/download/4/${name}.tar.bz2";
sha256 = "2d125e75dba387075a8bd443926d7fc6752e54cc9a21c2ef32e44fffc445a8ce";
url = "http://nixos.org/releases/nix/${name}/build/565033/download/4/${name}.tar.bz2";
sha256 = "0648ed285f263a2cc5a704c4aee70ec5f0415c3749f540c2691a2a613492c7c3";
};
buildInputs = [ perl curl openssl ];
buildNativeInputs = [ perl ];
buildInputs = [ curl openssl ];
configureFlags =
''
--with-store-dir=${storeDir} --localstatedir=${stateDir}
--with-aterm=${aterm} --with-bzip2=${bzip2}
${stdenv.lib.optionalString (openssl != null) "--with-openssl=${openssl}"}
--with-bzip2=${bzip2}
--disable-init-state
CFLAGS=-O3 CXXFLAGS=-O3
'';
doCheck = true;
crossAttrs = {
configureFlags =
''
--with-store-dir=${storeDir} --localstatedir=${stateDir}
--with-bzip2=${bzip2.hostDrv}
--disable-init-state
CFLAGS=-O3 CXXFLAGS=-O3
'';
doCheck = false;
};
passthru = { inherit aterm; };
doCheck = true;
meta = {
description = "The Nix Deployment System";
homepage = http://nixos.org/;
license = "LGPL";
license = "LGPLv2+";
};
}

View File

@ -6853,7 +6853,7 @@ let
mess = callPackage ../misc/emulators/mess { };
nix = nixUnstable;
nix = nixStable;
nixStable = callPackage ../tools/package-management/nix {
storeDir = getPkgConfig "nix" "storeDir" "/nix/store";