feat(lib): add getMainProgram helper
This commit is contained in:
parent
06c2b20c67
commit
fed04d4028
1 changed files with 2 additions and 0 deletions
|
@ -29,5 +29,7 @@ lib.makeExtensible (self:
|
|||
replaceStrings
|
||||
[ "." ] [ "" ]
|
||||
(strings.sanitizeDerivationName (removePrefix "/" name));
|
||||
|
||||
getMainProgram = package: "${package}/bin/${attrByPath ["meta" "mainProgram"] package.pname package}";
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue