summaryrefslogtreecommitdiffstats
path: root/lib/default.nix
diff options
context:
space:
mode:
authorlassulus <lass@xerxes.r>2019-09-06 15:33:04 +0200
committerlassulus <lass@xerxes.r>2019-09-06 15:33:04 +0200
commitbb9f3a7f4485afe584ba78e05cb6f4890ff95506 (patch)
tree574852e4f6e8f3ec100a5e62472f81bc93fdbe73 /lib/default.nix
parentb92d16a0776fe4493104ff008b7a75ba65b9ad7a (diff)
parentc1f93fba01f45737d1f18f5832e4948a72e75642 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'lib/default.nix')
-rw-r--r--lib/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 8ba55b5..14e6e27 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;