ark/lib/default.nix

11 lines
270 B
Nix
Raw Normal View History

2022-04-09 21:33:13 +03:00
lib:
(lib.extend (_: _: builtins)).extend (_: lib: rec {
defaultSystems = import ./systems.nix;
genSystems = lib.genAttrs defaultSystems;
pkgBin = pkgs: id:
if lib.isString id
then "${pkgs.${id}}/bin/${id}"
else "${pkgs.${id.name}}/bin/${id.bin}";
})