diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-01-16 18:28:21 +0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2018-01-16 18:48:54 +0200 |
commit | 82cab72dd41cf3e243a76bdbbe2ba9631e9ffa5a (patch) | |
tree | a9ab98a04d66260ce27f3d968e307f1864dc957d /pkgs/top-level/release-lib.nix | |
parent | 822c9498339ac63b16da4bd385ce551ddfe03171 (diff) | |
download | nixlib-82cab72dd41cf3e243a76bdbbe2ba9631e9ffa5a.tar nixlib-82cab72dd41cf3e243a76bdbbe2ba9631e9ffa5a.tar.gz nixlib-82cab72dd41cf3e243a76bdbbe2ba9631e9ffa5a.tar.bz2 nixlib-82cab72dd41cf3e243a76bdbbe2ba9631e9ffa5a.tar.lz nixlib-82cab72dd41cf3e243a76bdbbe2ba9631e9ffa5a.tar.xz nixlib-82cab72dd41cf3e243a76bdbbe2ba9631e9ffa5a.tar.zst nixlib-82cab72dd41cf3e243a76bdbbe2ba9631e9ffa5a.zip |
release-lib: forAllSupportedSystems -> forTheseSystems
I'm going to move forAllSystems from nixos/release.nix, and these functions sound too similar while doing different things.
Diffstat (limited to 'pkgs/top-level/release-lib.nix')
-rw-r--r-- | pkgs/top-level/release-lib.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/top-level/release-lib.nix b/pkgs/top-level/release-lib.nix index fd05be0e1097..a56df53d27ef 100644 --- a/pkgs/top-level/release-lib.nix +++ b/pkgs/top-level/release-lib.nix @@ -58,7 +58,7 @@ rec { interested in the result of cross building a package. */ crossMaintainers = [ maintainers.viric ]; - forAllSupportedSystems = systems: f: + forTheseSystems = systems: f: genAttrs (filter (x: elem x supportedSystems) systems) f; /* Build a package on the given set of platforms. The function `f' @@ -66,14 +66,14 @@ rec { platform as an argument . We return an attribute set containing a derivation for each supported platform, i.e. ‘{ x86_64-linux = f pkgs_x86_64_linux; i686-linux = f pkgs_i686_linux; ... }’. */ - testOn = systems: f: forAllSupportedSystems systems + testOn = systems: f: forTheseSystems systems (system: hydraJob' (f (pkgsFor system))); /* Similar to the testOn function, but with an additional 'crossSystem' parameter for allPackages, defining the target platform for cross builds. */ - testOnCross = crossSystem: systems: f: forAllSupportedSystems systems + testOnCross = crossSystem: systems: f: forTheseSystems systems (system: hydraJob' (f (allPackages { inherit system crossSystem; }))); |