parent
4cbec5ca20
commit
f5f32a5b4b
|
@ -1,33 +1,43 @@
|
||||||
{ stdenv, fetchurl, aterm, perl, curl, bzip2, openssl ? null
|
{ stdenv, fetchurl, perl, curl, bzip2, openssl ? null
|
||||||
, storeDir ? "/nix/store"
|
, storeDir ? "/nix/store"
|
||||||
, stateDir ? "/nix/var"
|
, stateDir ? "/nix/var"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "nix-0.15";
|
name = "nix-0.16";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://hydra.nixos.org/build/326788/download/4/${name}.tar.bz2";
|
url = "http://nixos.org/releases/nix/${name}/build/565033/download/4/${name}.tar.bz2";
|
||||||
sha256 = "2d125e75dba387075a8bd443926d7fc6752e54cc9a21c2ef32e44fffc445a8ce";
|
sha256 = "0648ed285f263a2cc5a704c4aee70ec5f0415c3749f540c2691a2a613492c7c3";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perl curl openssl ];
|
buildNativeInputs = [ perl ];
|
||||||
|
buildInputs = [ curl openssl ];
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
''
|
''
|
||||||
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
--with-store-dir=${storeDir} --localstatedir=${stateDir}
|
||||||
--with-aterm=${aterm} --with-bzip2=${bzip2}
|
--with-bzip2=${bzip2}
|
||||||
${stdenv.lib.optionalString (openssl != null) "--with-openssl=${openssl}"}
|
|
||||||
--disable-init-state
|
--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 = {
|
meta = {
|
||||||
description = "The Nix Deployment System";
|
description = "The Nix Deployment System";
|
||||||
homepage = http://nixos.org/;
|
homepage = http://nixos.org/;
|
||||||
license = "LGPL";
|
license = "LGPLv2+";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6853,7 +6853,7 @@ let
|
||||||
|
|
||||||
mess = callPackage ../misc/emulators/mess { };
|
mess = callPackage ../misc/emulators/mess { };
|
||||||
|
|
||||||
nix = nixUnstable;
|
nix = nixStable;
|
||||||
|
|
||||||
nixStable = callPackage ../tools/package-management/nix {
|
nixStable = callPackage ../tools/package-management/nix {
|
||||||
storeDir = getPkgConfig "nix" "storeDir" "/nix/store";
|
storeDir = getPkgConfig "nix" "storeDir" "/nix/store";
|
||||||
|
|
Loading…
Reference in New Issue