Merge pull request #101245 from edolstra/bump-nix-unstable
nixUnstable: 3.0pre20200829_f156513 -> 3.0pre20201020_e0ca98c
This commit is contained in:
commit
c4b26e7020
@ -11,8 +11,9 @@ common =
|
|||||||
{ lib, stdenv, fetchpatch, perl, curl, bzip2, sqlite, openssl ? null, xz
|
{ lib, stdenv, fetchpatch, perl, curl, bzip2, sqlite, openssl ? null, xz
|
||||||
, 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
|
||||||
, jq, libarchive
|
, jq, libarchive
|
||||||
|
, lowdown, mdbook
|
||||||
# Used by tests
|
# Used by tests
|
||||||
, gmock
|
, gmock
|
||||||
, busybox-sandbox-shell
|
, busybox-sandbox-shell
|
||||||
@ -31,8 +32,8 @@ common =
|
|||||||
inherit name src;
|
inherit name src;
|
||||||
version = lib.getVersion name;
|
version = lib.getVersion name;
|
||||||
|
|
||||||
is24 = lib.versionAtLeast version "2.4pre";
|
is30 = lib.versionAtLeast version "3.0pre";
|
||||||
isExactly23 = lib.versionAtLeast version "2.3" && lib.versionOlder version "2.4";
|
isExactly30 = lib.versionAtLeast version "2.3" && lib.versionOlder version "3.0";
|
||||||
|
|
||||||
VERSION_SUFFIX = suffix;
|
VERSION_SUFFIX = suffix;
|
||||||
|
|
||||||
@ -40,15 +41,20 @@ common =
|
|||||||
|
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[ pkgconfig ]
|
[ pkgconfig ]
|
||||||
++ lib.optionals is24 [ autoreconfHook autoconf-archive bison flex libxml2 libxslt
|
++ lib.optionals is30
|
||||||
docbook5 docbook_xsl_ns jq ];
|
[ autoreconfHook
|
||||||
|
autoconf-archive
|
||||||
|
bison flex
|
||||||
|
lowdown mdbook
|
||||||
|
jq
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ curl openssl sqlite xz bzip2 nlohmann_json
|
[ curl openssl sqlite xz bzip2 nlohmann_json
|
||||||
brotli boost editline
|
brotli boost editline
|
||||||
]
|
]
|
||||||
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
|
++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
|
||||||
++ lib.optionals is24 [ libarchive gmock ]
|
++ lib.optionals is30 [ libarchive gmock ]
|
||||||
++ lib.optional withLibseccomp libseccomp
|
++ lib.optional withLibseccomp libseccomp
|
||||||
++ lib.optional withAWS
|
++ lib.optional withAWS
|
||||||
((aws-sdk-cpp.override {
|
((aws-sdk-cpp.override {
|
||||||
@ -87,9 +93,9 @@ 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.*
|
||||||
''}
|
''}
|
||||||
'' +
|
'' +
|
||||||
# For Nix-2.3, patch around an issue where the Nix configure step pulls in the
|
# For Nix 3.0, 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 && isExactly30) ''
|
||||||
mkdir tmp/
|
mkdir tmp/
|
||||||
substitute corepkgs/config.nix.in tmp/config.nix.in \
|
substitute corepkgs/config.nix.in tmp/config.nix.in \
|
||||||
--subst-var-by bash ${bash}/bin/bash \
|
--subst-var-by bash ${bash}/bin/bash \
|
||||||
@ -162,7 +168,7 @@ common =
|
|||||||
# This is not cross-compile safe, don't have time to fix right now
|
# This is not cross-compile safe, don't have time to fix right now
|
||||||
# but noting for future travellers.
|
# but noting for future travellers.
|
||||||
nativeBuildInputs =
|
nativeBuildInputs =
|
||||||
[ perl pkgconfig curl nix libsodium boost autoreconfHook autoconf-archive ];
|
[ perl pkgconfig curl nix libsodium boost autoreconfHook autoconf-archive nlohmann_json ];
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
[ "--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"
|
[ "--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"
|
||||||
@ -193,13 +199,13 @@ in rec {
|
|||||||
|
|
||||||
nixUnstable = lib.lowPrio (callPackage common rec {
|
nixUnstable = lib.lowPrio (callPackage common rec {
|
||||||
name = "nix-3.0${suffix}";
|
name = "nix-3.0${suffix}";
|
||||||
suffix = "pre20200829_f156513";
|
suffix = "pre20201020_e0ca98c";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "NixOS";
|
owner = "NixOS";
|
||||||
repo = "nix";
|
repo = "nix";
|
||||||
rev = "f15651303f8596bf34c67fc8d536b1e9e7843a87";
|
rev = "e0ca98c2071b815578470e280df8fdb750c7e23b";
|
||||||
hash = "sha256-HqM3Z4DLdMrf+0PPZL9ysctGg+K+i3S/IHA1GsJj0Ro=";
|
hash = "sha256-KVS/Z6FzMBOl5XCyOLwfiVoX7G2LQRa9HMGNnJRPCoo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
inherit storeDir stateDir confDir boehmgc;
|
inherit storeDir stateDir confDir boehmgc;
|
||||||
|
Loading…
Reference in New Issue
Block a user