summaryrefslogtreecommitdiffstats
path: root/lib
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
commitc2773285ebf8165fd725065047df7a58da01fb42 (patch)
treee1e067b768f334916d9d07b6cfa5c1a72b8067a4 /lib
parentb06065549a31cf1713135e6547b04f69f351d7fb (diff)
parente388d02623b98bad5db52b29ea1ef1f494fddae8 (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix3
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;