nit(lib): reformat
This commit is contained in:
parent
82729bf336
commit
ff6a1940d6
1 changed files with 25 additions and 28 deletions
|
@ -1,12 +1,10 @@
|
||||||
{ lib }:
|
{ lib }:
|
||||||
lib.makeExtensible (self:
|
lib.makeExtensible (self:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
rec {
|
rec {
|
||||||
flattenListSet = imports: (flatten (concatLists (attrValues imports)));
|
flattenListSet = imports: (flatten (concatLists (attrValues imports)));
|
||||||
flattenSetList = attrSet: (mapAttrs (name: value: flatten value) attrSet);
|
flattenSetList = attrSet: (mapAttrs (name: value: flatten value) attrSet);
|
||||||
|
|
||||||
|
|
||||||
# ["/home/user/" "/.screenrc"] -> ["home" "user" ".screenrc"]
|
# ["/home/user/" "/.screenrc"] -> ["home" "user" ".screenrc"]
|
||||||
splitPath = paths:
|
splitPath = paths:
|
||||||
(filter
|
(filter
|
||||||
|
@ -31,5 +29,4 @@ lib.makeExtensible (self:
|
||||||
(strings.sanitizeDerivationName (removePrefix "/" name));
|
(strings.sanitizeDerivationName (removePrefix "/" name));
|
||||||
|
|
||||||
getMainProgram = package: "${package}/bin/${attrByPath ["meta" "mainProgram"] package.pname package}";
|
getMainProgram = package: "${package}/bin/${attrByPath ["meta" "mainProgram"] package.pname package}";
|
||||||
}
|
})
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue