Update nixUnstable and nixFlakes
This commit is contained in:
parent
14bc25038b
commit
b505bf202b
@ -13,7 +13,7 @@ common =
|
|||||||
, bash, coreutils, gzip, gnutar
|
, bash, coreutils, gzip, gnutar
|
||||||
, pkgconfig, boehmgc, perlPackages, libsodium, brotli, boost, editline, nlohmann_json
|
, pkgconfig, boehmgc, perlPackages, libsodium, brotli, boost, editline, nlohmann_json
|
||||||
, autoreconfHook, autoconf-archive, bison, flex, libxml2, libxslt, docbook5, docbook_xsl_ns
|
, autoreconfHook, autoconf-archive, bison, flex, libxml2, libxslt, docbook5, docbook_xsl_ns
|
||||||
, jq, libarchive, rustc, cargo
|
, jq, libarchive
|
||||||
# Used by tests
|
# Used by tests
|
||||||
, gmock
|
, gmock
|
||||||
, busybox-sandbox-shell
|
, busybox-sandbox-shell
|
||||||
@ -23,7 +23,7 @@ common =
|
|||||||
, withLibseccomp ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) libseccomp.meta.platforms, libseccomp
|
, withLibseccomp ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) libseccomp.meta.platforms, libseccomp
|
||||||
, withAWS ? !enableStatic && (stdenv.isLinux || stdenv.isDarwin), aws-sdk-cpp
|
, withAWS ? !enableStatic && (stdenv.isLinux || stdenv.isDarwin), aws-sdk-cpp
|
||||||
, enableStatic ? false
|
, enableStatic ? false
|
||||||
, name, suffix ? "", src, crates ? null
|
, name, suffix ? "", src
|
||||||
|
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@ -49,7 +49,7 @@ common =
|
|||||||
brotli boost editline
|
brotli boost editline
|
||||||
]
|
]
|
||||||
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
|
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
|
||||||
++ lib.optionals is24 [ libarchive rustc cargo ]
|
++ lib.optionals is24 [ libarchive ]
|
||||||
++ lib.optional withLibseccomp libseccomp
|
++ lib.optional withLibseccomp libseccomp
|
||||||
++ lib.optional withAWS
|
++ lib.optional withAWS
|
||||||
((aws-sdk-cpp.override {
|
((aws-sdk-cpp.override {
|
||||||
@ -88,11 +88,6 @@ common =
|
|||||||
patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib $out/lib/libboost_thread.so.*
|
patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib $out/lib/libboost_thread.so.*
|
||||||
''}
|
''}
|
||||||
'' +
|
'' +
|
||||||
# Unpack the Rust crates.
|
|
||||||
lib.optionalString is24 ''
|
|
||||||
tar xvf ${crates} -C nix-rust/
|
|
||||||
mv nix-rust/nix-vendored-crates* nix-rust/vendor
|
|
||||||
'' +
|
|
||||||
# For Nix-2.3, patch around an issue where the Nix configure step pulls in the
|
# For Nix-2.3, patch around an issue where the Nix configure step pulls in the
|
||||||
# build system's bash and other utilities when cross-compiling
|
# build system's bash and other utilities when cross-compiling
|
||||||
lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform && isExactly23) ''
|
lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform && isExactly23) ''
|
||||||
@ -200,18 +195,13 @@ in rec {
|
|||||||
|
|
||||||
nixUnstable = lib.lowPrio (callPackage common rec {
|
nixUnstable = lib.lowPrio (callPackage common rec {
|
||||||
name = "nix-2.4${suffix}";
|
name = "nix-2.4${suffix}";
|
||||||
suffix = "pre7534_b92f58f6";
|
suffix = "pre7805_984e5213";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "NixOS";
|
owner = "NixOS";
|
||||||
repo = "nix";
|
repo = "nix";
|
||||||
rev = "b92f58f6d9e44f97002d1722bd77bad939824c1c";
|
rev = "984e521392b3f41f7cdab203e5c00f3e00e27a28";
|
||||||
sha256 = "1p791961y5v04kpz37g6hm98f1ig7i34inxl9dcj3pbqhf5kicxg";
|
sha256 = "1dch48018dwzx9cysnfxrdpszav87s0d635zqw810mgmqpm25fw8";
|
||||||
};
|
|
||||||
|
|
||||||
crates = fetchurl {
|
|
||||||
url = "https://hydra.nixos.org/build/118797694/download/1/nix-vendored-crates-2.4pre7534_b92f58f6.tar.xz";
|
|
||||||
sha256 = "a4c2612bbd81732bbb899bc0c230e07b16f6b6150ffbb19c4907dedbbc2bf9fc";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit storeDir stateDir confDir boehmgc;
|
inherit storeDir stateDir confDir boehmgc;
|
||||||
@ -219,18 +209,13 @@ in rec {
|
|||||||
|
|
||||||
nixFlakes = lib.lowPrio (callPackage common rec {
|
nixFlakes = lib.lowPrio (callPackage common rec {
|
||||||
name = "nix-2.4${suffix}";
|
name = "nix-2.4${suffix}";
|
||||||
suffix = "pre20200521_00b562c";
|
suffix = "pre20200622_334e26b";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "NixOS";
|
owner = "NixOS";
|
||||||
repo = "nix";
|
repo = "nix";
|
||||||
rev = "00b562c87ec4c3bbe514f5dc1f4d1c41f66f66bf";
|
rev = "334e26bfc2ce82912602e8a0f9f9c7e0fb5c3221";
|
||||||
sha256 = "0s8is2czpkcj1x1kcjqgbnsbbl03w3fwjjiclsd44zh1ij3wb90s";
|
sha256 = "14a2yyn1ygymlci6hl5d308fs3p3m0mgcfs5dc8dn0s3lg5qvbmp";
|
||||||
};
|
|
||||||
|
|
||||||
crates = fetchurl {
|
|
||||||
url = "https://hydra.nixos.org/build/118093786/download/1/nix-vendored-crates-2.4pre20200501_941f952.tar.xz";
|
|
||||||
sha256 = "060f4n5srdbb8vsj0m14aqch7im79a4h5g3nrs41p1xc602vhcdl";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit storeDir stateDir confDir boehmgc;
|
inherit storeDir stateDir confDir boehmgc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user