diff options
author | Lily Foster <lily@lily.flowers> | 2023-06-29 11:11:41 -0400 |
---|---|---|
committer | Lily Foster <lily@lily.flowers> | 2023-06-29 11:11:41 -0400 |
commit | 86f94c3e45e0ea38ecd2aebfecc1680530fd3a34 (patch) | |
tree | fc55fd071b01e033922684d58ee4fd1ec27166b1 /pkgs/build-support/node | |
parent | a777753eb26c96144d58f899b5893509a87b6f5a (diff) |
prefetch-yarn-deps: add tests passthru
Diffstat (limited to 'pkgs/build-support/node')
-rw-r--r-- | pkgs/build-support/node/fetch-yarn-deps/default.nix | 6 |
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; }; } |