summary refs log tree commit diff
path: root/lib/tests/misc.nix
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-03-09 17:21:12 -0500
committerShea Levy <shea@shealevy.com>2018-03-09 17:21:31 -0500
commitb66d7dc0ce684197181a2a8ec0859470137507aa (patch)
tree5c2f9e4eb8f750dc7f6611ac8d30fe9da06bdd90 /lib/tests/misc.nix
parentd3570a1e219b6aad2447e5e4eb4830369637ce55 (diff)
downloadnixpkgs-b66d7dc0ce684197181a2a8ec0859470137507aa.tar
nixpkgs-b66d7dc0ce684197181a2a8ec0859470137507aa.tar.gz
nixpkgs-b66d7dc0ce684197181a2a8ec0859470137507aa.tar.bz2
nixpkgs-b66d7dc0ce684197181a2a8ec0859470137507aa.tar.lz
nixpkgs-b66d7dc0ce684197181a2a8ec0859470137507aa.tar.xz
nixpkgs-b66d7dc0ce684197181a2a8ec0859470137507aa.tar.zst
nixpkgs-b66d7dc0ce684197181a2a8ec0859470137507aa.zip
lib.isStorePath: Fix derivation detection
Diffstat (limited to 'lib/tests/misc.nix')
-rw-r--r--lib/tests/misc.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tests/misc.nix b/lib/tests/misc.nix
index 1657ec33a46..e10aea48e48 100644
--- a/lib/tests/misc.nix
+++ b/lib/tests/misc.nix
@@ -93,6 +93,7 @@ runTests {
             "${builtins.storeDir}/d945ibfx9x185xf04b890y4f9g3cbb63-python-2.7.11";
       in {
         storePath = isStorePath goodPath;
+        storePathDerivation = isStorePath (import ../.. {}).hello;
         storePathAppendix = isStorePath
           "${goodPath}/bin/python";
         nonAbsolute = isStorePath (concatStrings (tail (stringToCharacters goodPath)));
@@ -106,6 +107,7 @@ runTests {
       };
     expected = {
       storePath = true;
+      storePathDerivation = true;
       storePathAppendix = false;
       nonAbsolute = false;
       asPath = true;