feat(lib): add getMainProgram helper

This commit is contained in:
Infinidoge 2022-04-08 18:55:51 -04:00
parent 06c2b20c67
commit fed04d4028

View file

@ -29,5 +29,7 @@ lib.makeExtensible (self:
replaceStrings
[ "." ] [ "" ]
(strings.sanitizeDerivationName (removePrefix "/" name));
getMainProgram = package: "${package}/bin/${attrByPath ["meta" "mainProgram"] package.pname package}";
}
)