Skip to content

Commit

Permalink
nodejs: add testVersion to passthru.tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tie committed Jul 6, 2024
1 parent ce685a8 commit 97240ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/web/nodejs/nodejs.nix
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 97240ea

Please sign in to comment.