lib: add packageName

This commit is contained in:
tv 2019-09-04 20:17:02 +02:00
parent aac6c242e8
commit 38bf02df0a

View File

@ -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;