git.iko.soy/typeable/nixpkgs
on master help sign in
release-lib: forAllSupportedSystems -> forTheseSystems

I'm going to move forAllSystems from nixos/release.nix, and these functions sound too similar while doing different things.

commit82cab72dd41cf3e243a76bdbbe2ba9631e9ffa5a authorTuomas Tynkkynen <tuomas@tuxera.com> dateTue 16 Jan 2018, 18:28 (9 years ago) parent822c949
2 files changed+4−4
pkgs/top-level/release-cross.nix+1−1 pkgs/top-level/release-lib.nix+3−3
pkgs/top-level/release-cross.nix+1−1
@@ -75,7 +75,7 @@ in
7575 f (["buildPackages"] ++ path) { inherit system crossSystem; }
7676 );
7777
78− testEqual = path: systems: forAllSupportedSystems systems (testEqualOne path);
78+ testEqual = path: systems: forTheseSystems systems (testEqualOne path);
7979
8080 mapTestEqual = lib.mapAttrsRecursive testEqual;
8181
pkgs/top-level/release-lib.nix+3−3
@@ -58,7 +58,7 @@ rec {
5858 interested in the result of cross building a package. */
5959 crossMaintainers = [ maintainers.viric ];
6060
61− forAllSupportedSystems = systems: f:
61+ forTheseSystems = systems: f:
6262 genAttrs (filter (x: elem x supportedSystems) systems) f;
6363
6464 /* Build a package on the given set of platforms. The function `f'
@@ -66,14 +66,14 @@ rec {
6666 platform as an argument . We return an attribute set containing
6767 a derivation for each supported platform, i.e. ‘{ x86_64-linux =
6868 f pkgs_x86_64_linux; i686-linux = f pkgs_i686_linux; ... }’. */
69− testOn = systems: f: forAllSupportedSystems systems
69+ testOn = systems: f: forTheseSystems systems
7070 (system: hydraJob' (f (pkgsFor system)));
7171
7272
7373 /* Similar to the testOn function, but with an additional
7474 'crossSystem' parameter for allPackages, defining the target
7575 platform for cross builds. */
76− testOnCross = crossSystem: systems: f: forAllSupportedSystems systems
76+ testOnCross = crossSystem: systems: f: forTheseSystems systems
7777 (system: hydraJob' (f (allPackages { inherit system crossSystem; })));
7878
7979