optimize forAllSystems

This commit is contained in:
Sean Buckley 2021-09-10 15:55:20 -04:00
parent f1538700fb
commit 503c271f92

View file

@ -42,10 +42,9 @@
lib = { lib = {
getHosts = import lib/hosts.nix; getHosts = import lib/hosts.nix;
morphHosts = import lib/morph.nix; morphHosts = import lib/morph.nix;
forAllSystems = f: builtins.listToAttrs (map forAllSystems = f: builtins.mapAttrs
(name: { inherit name; value = f name; }) (name: _: f name)
(builtins.attrNames nixpkgs.legacyPackages) (nixpkgs.legacyPackages);
);
}; };
packages = self.lib.forAllSystems packages = self.lib.forAllSystems