ark/lib/default.nix
2022-08-11 05:44:58 +03:00

14 lines
355 B
Nix

lib:
lib.makeExtensible (self: {
defaultSystems = import ./systems.nix;
genSystems = lib.genAttrs self.defaultSystems;
pkgBin = pkg:
if (pkg.meta or {}) ? mainProgram
then "${pkg}/bin/${pkg.meta.mainProgram}"
else "${pkg}/bin/${pkg.pname}";
prefixStrings = prefix: strings:
lib.forEach strings (string: "${prefix}${string}");
})