nixos/release.nix: Move forAllSystems to release-lib
There's already a similar forTheseSystems in release-lib, so be more
consistent.
commitb3c50ec1e9a3e2a4f356c4eaed46450b73f52dba
authorTuomas Tynkkynen <tuomas@tuxera.com>
dateTue 16 Jan 2018, 18:29 (9 years ago)
parent82cab72
nixos/release.nix+1−2
@@ -3,6 +3,7 @@
33, supportedSystems ? [ "x86_64-linux" "aarch64-linux" ]
44}:
55
6+with import ../pkgs/top-level/release-lib.nix { inherit supportedSystems; };
67with import ../lib;
78
89let
@@ -11,8 +12,6 @@ let
1112 versionSuffix =
1213 (if stableBranch then "." else "pre") + "${toString nixpkgs.revCount}.${nixpkgs.shortRev}";
1314
14− forAllSystems = genAttrs supportedSystems;
15−
1615 importTest = fn: args: system: import fn ({
1716 inherit system;
1817 } // args);
pkgs/top-level/release-lib.nix+1
@@ -58,6 +58,7 @@ rec {
5858 interested in the result of cross building a package. */
5959 crossMaintainers = [ maintainers.viric ];
6060
61+ forAllSystems = genAttrs supportedSystems;
6162 forTheseSystems = systems: f:
6263 genAttrs (filter (x: elem x supportedSystems) systems) f;
6364