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 = {
getHosts = import lib/hosts.nix;
morphHosts = import lib/morph.nix;
forAllSystems = f: builtins.listToAttrs (map
(name: { inherit name; value = f name; })
(builtins.attrNames nixpkgs.legacyPackages)
);
forAllSystems = f: builtins.mapAttrs
(name: _: f name)
(nixpkgs.legacyPackages);
};
packages = self.lib.forAllSystems