nodejs: add testVersion to passthru.tests

This commit is contained in:
Ivan Trubach 2024-07-01 21:51:35 +03:00
parent ce685a8422
commit 97240ea0ac

View File

@ -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;