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
|
|
|
|
2022-08-11 05:44:58 +03:00
|
|
|
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}");
|
2022-04-09 21:33:13 +03:00
|
|
|
})
|