lib: add packageName
This commit is contained in:
parent
aac6c242e8
commit
38bf02df0a
@ -30,6 +30,9 @@ let
|
||||
listToAttrs (map (name: nameValuePair name set.${name})
|
||||
(filter (flip hasAttr set) names));
|
||||
|
||||
packageName = pkg:
|
||||
pkg.pname or (parseDrvName pkg.name).name;
|
||||
|
||||
test = re: x: isString x && testString re x;
|
||||
|
||||
testString = re: x: match re x != null;
|
||||
|
Loading…
Reference in New Issue
Block a user