about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLily Foster <lily@lily.flowers>2023-06-29 11:11:41 -0400
committerLily Foster <lily@lily.flowers>2023-06-29 11:11:41 -0400
commit86f94c3e45e0ea38ecd2aebfecc1680530fd3a34 (patch)
treefc55fd071b01e033922684d58ee4fd1ec27166b1
parenta777753eb26c96144d58f899b5893509a87b6f5a (diff)
prefetch-yarn-deps: add tests passthru
-rw-r--r--pkgs/build-support/node/fetch-yarn-deps/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/build-support/node/fetch-yarn-deps/default.nix b/pkgs/build-support/node/fetch-yarn-deps/default.nix
index 4cf2507706ae7..6dc1ff44ca9e4 100644
--- a/pkgs/build-support/node/fetch-yarn-deps/default.nix
+++ b/pkgs/build-support/node/fetch-yarn-deps/default.nix
@@ -6,6 +6,8 @@ let
     sha512 = "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==";
   };
 
+  tests = callPackage ./tests {};
+
 in {
   prefetch-yarn-deps = stdenv.mkDerivation {
     name = "prefetch-yarn-deps";
@@ -37,6 +39,8 @@ in {
 
       runHook postInstall
     '';
+
+    passthru = { inherit tests; };
   };
 
   fetchYarnDeps = let
@@ -74,6 +78,6 @@ in {
     } // hash_ // (removeAttrs args ["src" "name" "hash" "sha256"]));
 
   in lib.setFunctionArgs f (lib.functionArgs f) // {
-    tests = callPackage ./tests {};
+    inherit tests;
   };
 }