ark/lib/default.nix
2022-04-10 05:48:34 +03:00

11 lines
251 B
Nix

lib:
lib.makeExtensible (self: {
defaultSystems = import ./systems.nix;
genSystems = lib.genAttrs self.defaultSystems;
pkgBin = pkgs: id:
if lib.isString id
then "${pkgs.${id}}/bin/${id}"
else "${pkgs.${id.name}}/bin/${id.bin}";
})