+680
pkgs/development/compilers/swift/compiler/default.nix
+680
pkgs/development/compilers/swift/compiler/default.nix
···
···+# The Swift toolchain script builds projects with separate repos. By convention, some of them share+url = "https://github.com/llvm/llvm-project/commit/b5eaf500f2441eff2277ea2973878fb1f171fd0a.patch";+# TODO: consider fixing and re-adding. This test fails due to a non-standard "install_prefix".+# [SOURCE_DIR/utils/build-script] ERROR: can't find source directory for libicu (tried /build/src/icu)+rm swift/validation-test/BuildSystem/default_build_still_performs_epilogue_opts_after_split.test+rm swift/test/AutoDiff/compiler_crashers_fixed/sr14290-missing-debug-scopes-in-pullback-trampoline.swift+-DEXPERIMENTAL_STRING_PROCESSING_SOURCE_DIR=$SWIFT_SOURCE_ROOT/swift-experimental-string-processing
+18
pkgs/development/compilers/swift/compiler/patches/clang-wrap.patch
+18
pkgs/development/compilers/swift/compiler/patches/clang-wrap.patch
···
···
+30
pkgs/development/compilers/swift/compiler/patches/llvm-module-cache.patch
+30
pkgs/development/compilers/swift/compiler/patches/llvm-module-cache.patch
···
···
+20
pkgs/development/compilers/swift/compiler/patches/swift-darwin-fix-bootstrap.patch
+20
pkgs/development/compilers/swift/compiler/patches/swift-darwin-fix-bootstrap.patch
···
···
+17
pkgs/development/compilers/swift/compiler/patches/swift-darwin-plistbuddy-workaround.patch
+17
pkgs/development/compilers/swift/compiler/patches/swift-darwin-plistbuddy-workaround.patch
···
···+- remove_sdk_unsupported_archs(${name} ${xcrun_name} ${SWIFT_SDK_${prefix}_PATH} SWIFT_SDK_${prefix}_ARCHITECTURES)
+21
pkgs/development/compilers/swift/compiler/patches/swift-linux-fix-linking.patch
+21
pkgs/development/compilers/swift/compiler/patches/swift-linux-fix-linking.patch
···
···
+67
pkgs/development/compilers/swift/compiler/patches/swift-nix-resource-root.patch
+67
pkgs/development/compilers/swift/compiler/patches/swift-nix-resource-root.patch
···
···
+39
pkgs/development/compilers/swift/compiler/patches/swift-prevent-sdk-dirs-warning.patch
+39
pkgs/development/compilers/swift/compiler/patches/swift-prevent-sdk-dirs-warning.patch
···
···+@@ -1455,9 +1455,11 @@ void ToolChain::getRuntimeLibraryPaths(SmallVectorImpl<std::string> &runtimeLibP
+26
pkgs/development/compilers/swift/compiler/patches/swift-separate-lib.patch
+26
pkgs/development/compilers/swift/compiler/patches/swift-separate-lib.patch
···
···
+46
pkgs/development/compilers/swift/compiler/patches/swift-wrap.patch
+46
pkgs/development/compilers/swift/compiler/patches/swift-wrap.patch
···
···
+48
-461
pkgs/development/compilers/swift/default.nix
+48
-461
pkgs/development/compilers/swift/default.nix
···-# The Swift toolchain script builds projects with separate repos. By convention, some of them share-# `fetchSwiftRelease`. The rest have their own versions locked to each Swift release, as defined in the-"-DC_INCLUDE_DIRS=${lib.makeSearchPathOutput "dev" "include" devInputs}:${libxml2.dev}/include/libxml2"-sed -i 's|''${GLIBC_INCLUDE_PATH}/uuid/uuid.h|${libuuid.dev}/include/uuid/uuid.h|' swift/stdlib/public/Platform/glibc.modulemap.gyb-substituteInPlace swift/utils/swift_build_support/swift_build_support/products/benchmarks.py \-substituteInPlace swift/utils/swift_build_support/swift_build_support/productpipeline_list_builder.py \-export NIX_LDFLAGS_BEFORE="-rpath ${gccForLibs.lib}/lib -L${gccForLibs.lib}/lib $NIX_LDFLAGS_BEFORE"-rm $SWIFT_SOURCE_ROOT/swift/validation-test/BuildSystem/infer_dumps_deps_if_verbose_build.test-# This test apparently requires Python 2 (strings are assumed to be bytes-like), but the build-# process overall now otherwise requires Python 3 (which is what we have updated to). A fix PR-# TODO: consider fixing and re-adding. This test fails due to a non-standard "install_prefix".-# [SOURCE_DIR/utils/build-script] ERROR: can't find source directory for libicu (tried /build/src/icu)-rm $SWIFT_SOURCE_ROOT/swift/validation-test/BuildSystem/default_build_still_performs_epilogue_opts_after_split.test-rm $SWIFT_SOURCE_ROOT/swift/validation-test/BuildSystem/test_early_swift_driver_and_infer.swift-rm $SWIFT_SOURCE_ROOT/swift/test/AutoDiff/compiler_crashers_fixed/sr14290-missing-debug-scopes-in-pullback-trampoline.swift-checkTarget=check-swift-all-${stdenv.hostPlatform.parsed.kernel.name}-${stdenv.hostPlatform.parsed.cpu.name}-ninjaFlags='-C buildbot_linux/swift-${stdenv.hostPlatform.parsed.kernel.name}-${stdenv.hostPlatform.parsed.cpu.name}'
···+inherit (apple_sdk) Libsystem LibsystemCross libcharset libunwind objc4 configd IOKit Security;
-13
pkgs/development/compilers/swift/patches/0001-build-presets-linux-don-t-require-using-Ninja.patch
-13
pkgs/development/compilers/swift/patches/0001-build-presets-linux-don-t-require-using-Ninja.patch
-13
pkgs/development/compilers/swift/patches/0002-build-presets-linux-allow-custom-install-prefix.patch
-13
pkgs/development/compilers/swift/patches/0002-build-presets-linux-allow-custom-install-prefix.patch
···
···
-23
pkgs/development/compilers/swift/patches/0003-build-presets-linux-don-t-build-extra-libs.patch
-23
pkgs/development/compilers/swift/patches/0003-build-presets-linux-don-t-build-extra-libs.patch
···
···
-13
pkgs/development/compilers/swift/patches/0004-build-presets-linux-plumb-extra-cmake-options.patch
-13
pkgs/development/compilers/swift/patches/0004-build-presets-linux-plumb-extra-cmake-options.patch
···
···
pkgs/development/compilers/swift/patches/0005-clang-toolchain-dir.patch
pkgs/development/compilers/swift/compiler/patches/clang-toolchain-dir.patch
pkgs/development/compilers/swift/patches/0005-clang-toolchain-dir.patch
pkgs/development/compilers/swift/compiler/patches/clang-toolchain-dir.patch
-16
pkgs/development/compilers/swift/patches/0006-clang-purity.patch
-16
pkgs/development/compilers/swift/patches/0006-clang-purity.patch
···
···
-13
pkgs/development/compilers/swift/patches/0007-build-presets-linux-os-stdlib.patch
-13
pkgs/development/compilers/swift/patches/0007-build-presets-linux-os-stdlib.patch
···
···
+50
pkgs/development/compilers/swift/wrapper/default.nix
+50
pkgs/development/compilers/swift/wrapper/default.nix
···
···
+28
pkgs/development/compilers/swift/wrapper/setup-hook.sh
+28
pkgs/development/compilers/swift/wrapper/setup-hook.sh
···
···
+266
pkgs/development/compilers/swift/wrapper/wrapper.sh
+266
pkgs/development/compilers/swift/wrapper/wrapper.sh
···
···+addCFlagsToList extraBefore ${hardeningCFlags[@]+"${hardeningCFlags[@]}"} $NIX_CFLAGS_COMPILE_BEFORE_@suffixSalt@+extraBefore[i]="${extraBefore[i]/-apple-darwin/-apple-macosx${MACOSX_DEPLOYMENT_TARGET:-11.0}}"
+33
-13
pkgs/os-specific/darwin/apple-sdk-11.0/default.nix
+33
-13
pkgs/os-specific/darwin/apple-sdk-11.0/default.nix
···-# https://swscan.apple.com/content/catalogs/others/index-11-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog-url = "http://swcdn.apple.com/content/downloads/46/21/001-89745-A_56FM390IW5/v1um2qppgfdnam2e9cdqcqu2r6k8aa3lis/CLTools_macOSNMOS_SDK.pkg";······
······+# https://swscan.apple.com/content/catalogs/others/index-11-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog+url = "http://swcdn.apple.com/content/downloads/46/21/001-89745-A_56FM390IW5/v1um2qppgfdnam2e9cdqcqu2r6k8aa3lis/CLTools_macOSNMOS_SDK.pkg";+# https://swscan.apple.com/content/catalogs/others/index-11-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog+url = "http://swcdn.apple.com/content/downloads/46/21/001-89745-A_56FM390IW5/v1um2qppgfdnam2e9cdqcqu2r6k8aa3lis/CLTools_Executables.pkg";···
+2
-1
pkgs/top-level/all-packages.nix
+2
-1
pkgs/top-level/all-packages.nix
···