swiftPackages.Foundation: fix build w/ glibc-2.38
Failing Hydra build: https://hydra.nixos.org/build/236210473
This commit is contained in:
parent
0668ba303a
commit
e016224a79
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
|
, fetchpatch
|
||||||
, callPackage
|
, callPackage
|
||||||
, cmake
|
, cmake
|
||||||
, ninja
|
, ninja
|
||||||
@ -23,6 +24,15 @@ in stdenv.mkDerivation {
|
|||||||
inherit (sources) version;
|
inherit (sources) version;
|
||||||
src = sources.swift-corelibs-foundation;
|
src = sources.swift-corelibs-foundation;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# from https://github.com/apple/swift-corelibs-foundation/pull/4811
|
||||||
|
# fix build with glibc >=2.38
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/apple/swift-corelibs-foundation/commit/47260803a108c6e0d639adcebeed3ac6a76e8bcd.patch";
|
||||||
|
hash = "sha256-1JUSQW86IHKkBZqxvpk0P8zcSKntzOTNlMoGBfgeT4c=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ninja swift ];
|
nativeBuildInputs = [ cmake ninja swift ];
|
||||||
|
Loading…
Reference in New Issue
Block a user