summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Trubach <mr.trubach@icloud.com>2024-07-01 21:51:35 +0300
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2024-07-08 15:54:46 +0200
commitb0b8bd7e7845de6986a62f6451fd4a78ecf29842 (patch)
tree23d57dfd4a1efa1ef631c18d8e96c596d9bf8a62
parentnodejs: fix sandboxed build on darwin (diff)
downloadnixpkgs-b0b8bd7e7845de6986a62f6451fd4a78ecf29842.tar.gz
nodejs: add testVersion to passthru.tests
(cherry picked from commit 97240ea0ac7bfec5aed52b1899ce371b85436edc)
-rw-r--r--pkgs/development/web/nodejs/nodejs.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix
index 607453286537..7f6b41b791a6 100644
--- a/pkgs/development/web/nodejs/nodejs.nix
+++ b/pkgs/development/web/nodejs/nodejs.nix
@@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl, openssl, python, zlib, libuv, util-linux, http-parser, bash
, pkg-config, which, buildPackages
+, testers
# for `.pkgs` attribute
, callPackage
# Updater dependencies
@@ -259,6 +260,13 @@ let
EOF
'';
+ passthru.tests = {
+ version = testers.testVersion {
+ package = self;
+ version = "v${version}";
+ };
+ };
+
passthru.updateScript = import ./update.nix {
inherit writeScript coreutils gnugrep jq curl common-updater-scripts gnupg nix runtimeShell;
inherit lib;