nixUnstable: fix build on gcc10
This commit is contained in:
parent
a909a45e04
commit
2cb2a5348e
1 changed files with 10 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, fetchurl, fetchFromGitHub, callPackage
|
||||
{ lib, fetchurl, fetchpatch, fetchFromGitHub, callPackage
|
||||
, storeDir ? "/nix/store"
|
||||
, stateDir ? "/nix/var"
|
||||
, confDir ? "/etc"
|
||||
|
@ -23,13 +23,13 @@ common =
|
|||
, withLibseccomp ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) libseccomp.meta.platforms, libseccomp
|
||||
, withAWS ? !enableStatic && (stdenv.isLinux || stdenv.isDarwin), aws-sdk-cpp
|
||||
, enableStatic ? false
|
||||
, name, suffix ? "", src
|
||||
, name, suffix ? "", src, patches ? []
|
||||
|
||||
}:
|
||||
let
|
||||
sh = busybox-sandbox-shell;
|
||||
nix = stdenv.mkDerivation rec {
|
||||
inherit name src;
|
||||
inherit name src patches;
|
||||
version = lib.getVersion name;
|
||||
|
||||
is24 = lib.versionAtLeast version "2.4pre";
|
||||
|
@ -208,6 +208,13 @@ in rec {
|
|||
sha256 = "0qhd3nxvqzszzsfvh89xhd239ycqb0kq2n0bzh9br78pcb60vj3g";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch { # Fix build on gcc10
|
||||
url = "https://github.com/NixOS/nix/commit/d4870462f8f539adeaa6dca476aff6f1f31e1981.patch";
|
||||
sha256 = "mTvLvuxb2QVybRDgntKMq+b6da/s3YgM/ll2rWBeY/Y=";
|
||||
})
|
||||
];
|
||||
|
||||
inherit storeDir stateDir confDir boehmgc;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue