mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
swift: Workaround Hydra darwin build problem (#354192)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
, coreutils
|
||||
, gnugrep
|
||||
, perl
|
||||
, ninja
|
||||
, ninja_1_11
|
||||
, pkg-config
|
||||
, clang
|
||||
, bintools
|
||||
@@ -190,6 +190,14 @@ let
|
||||
'';
|
||||
};
|
||||
|
||||
# https://github.com/NixOS/nixpkgs/issues/327836
|
||||
# Fail to build with ninja 1.12 when NIX_BUILD_CORES is low (Hydra or Github Actions).
|
||||
# Can reproduce using `nix --option cores 2 build -f . swiftPackages.swift-unwrapped`.
|
||||
# Until we find out the exact cause, follow [swift upstream][1], pin ninja to version
|
||||
# 1.11.1.
|
||||
# [1]: https://github.com/swiftlang/swift/pull/72989
|
||||
ninja = ninja_1_11;
|
||||
|
||||
in stdenv.mkDerivation {
|
||||
pname = "swift";
|
||||
inherit (sources) version;
|
||||
|
||||
Reference in New Issue
Block a user