diff options
author | makefu <github@syntax-fehler.de> | 2019-09-06 15:11:25 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-09-06 15:11:25 +0200 |
commit | 8901bab8ad2f1db1ac7a1fabec091be3a14a1c20 (patch) | |
tree | 1116f0bc3ad2da388a6d066f95a55740baf1865f /lib | |
parent | fce2c4275caf7df064fb13a4280291a9aefaef1f (diff) | |
parent | e388d02623b98bad5db52b29ea1ef1f494fddae8 (diff) |
Merge remote-tracking branch 'tv/master'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix index 8ba55b571..14e6e27a3 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -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; |