2022-04-09 21:33:13 +03:00
|
|
|
lib:
|
2022-04-10 05:48:34 +03:00
|
|
|
lib.makeExtensible (self: {
|
2022-04-09 21:33:13 +03:00
|
|
|
defaultSystems = import ./systems.nix;
|
2022-04-10 05:48:34 +03:00
|
|
|
genSystems = lib.genAttrs self.defaultSystems;
|
2022-04-09 21:33:13 +03:00
|
|
|
|
|
|
|
pkgBin = pkgs: id:
|
|
|
|
if lib.isString id
|
|
|
|
then "${pkgs.${id}}/bin/${id}"
|
|
|
|
else "${pkgs.${id.name}}/bin/${id.bin}";
|
|
|
|
})
|