From 9ad913dd6fd4ad138a71e43ab4c742a673b84ea1 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 21 Aug 2020 13:31:15 +0200 Subject: [PATCH] swift: fix build w/glibc-2.32 --- pkgs/development/compilers/swift/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/compilers/swift/default.nix b/pkgs/development/compilers/swift/default.nix index c4144532c583..2cabacadd756 100644 --- a/pkgs/development/compilers/swift/default.nix +++ b/pkgs/development/compilers/swift/default.nix @@ -245,6 +245,10 @@ stdenv.mkDerivation { --replace usr "$PREFIX" substituteInPlace swift-corelibs-xctest/build_script.py \ --replace usr "$PREFIX" + substituteInPlace swift-corelibs-foundation/CoreFoundation/PlugIn.subproj/CFBundle_InfoPlist.c \ + --replace "if !TARGET_OS_ANDROID" "if TARGET_OS_MAC || TARGET_OS_BSD" + substituteInPlace swift-corelibs-foundation/CoreFoundation/PlugIn.subproj/CFBundle_Resources.c \ + --replace "if !TARGET_OS_ANDROID" "if TARGET_OS_MAC || TARGET_OS_BSD" ''; configurePhase = ''