diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2023-09-27 14:36:44 +0200 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2023-09-27 14:36:44 +0200 |
commit | e016224a79188a353b1ba046205906da41cce8de (patch) | |
tree | 5ae5723179241eabda17691c28498b25d0ba3992 /pkgs/development/compilers/swift | |
parent | 0668ba303ad04673bf542e134c1a8740551d2c0c (diff) |
swiftPackages.Foundation: fix build w/ glibc-2.38
Failing Hydra build: https://hydra.nixos.org/build/236210473
Diffstat (limited to 'pkgs/development/compilers/swift')
-rw-r--r-- | pkgs/development/compilers/swift/foundation/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/compilers/swift/foundation/default.nix b/pkgs/development/compilers/swift/foundation/default.nix index efb35bd74c9fe..b0da48c68a957 100644 --- a/pkgs/development/compilers/swift/foundation/default.nix +++ b/pkgs/development/compilers/swift/foundation/default.nix @@ -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 ]; |