swiftPackages.Foundation: fix build w/ glibc-2.38

Failing Hydra build: https://hydra.nixos.org/build/236210473
This commit is contained in:
Maximilian Bosch 2023-09-27 14:36:44 +02:00
parent 0668ba303a
commit e016224a79
No known key found for this signature in database
GPG Key ID: 9A6EEA275CA5BE0A

View File

@ -5,6 +5,7 @@
{ lib
, stdenv
, fetchpatch
, callPackage
, cmake
, ninja
@ -23,6 +24,15 @@ in stdenv.mkDerivation {
inherit (sources) version;
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" ];
nativeBuildInputs = [ cmake ninja swift ];