Skip to content

Commit 5413cd8

Browse files
addisonbecktangowithfoxtrot
authored andcommitted
review: only every try to build the swift package on darwin
1 parent e6149ff commit 5413cd8

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

flake.nix

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -953,18 +953,21 @@
953953
paths = map (name: rustCratePackages.${name}) rustCrates;
954954
};
955955

956-
builds = pkgs.symlinkJoin {
956+
builds = (pkgs.symlinkJoin ({
957957
name = "builds";
958958
paths = with self.packages.${system}; [
959959
crates
960-
swift
961960
wasm
962961
android
963962
rustdoc
963+
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
964+
swift
964965
];
966+
} // pkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
965967
__noChroot = true;
966968
__impure = true;
967-
};
969+
}));
970+
968971

969972
checks = pkgs.symlinkJoin {
970973
name = "checks";
@@ -988,15 +991,16 @@
988991
# checks is enough, or targetting a specific platform (crates,
989992
# wasm, swift, android) if you are having issues with a specific
990993
# build.
991-
everything = pkgs.symlinkJoin {
994+
everything = (pkgs.symlinkJoin ({
992995
name = "everything";
993-
__noChroot = true;
994-
__impure = true;
995996
paths = with self.packages.${system}; [
996997
checks
997998
builds
998999
];
999-
};
1000+
} // pkgs.lib.optionalAttrs pkgs.stdenv.isDarwin {
1001+
__noChroot = true;
1002+
__impure = true;
1003+
}));
10001004

10011005
default = self.packages.${system}.checks;
10021006
}

0 commit comments

Comments
 (0)