Merge pull request #170385 from bobby285271/testversion

various: use testers.testVersion
This commit is contained in:
Bobby Rong 2022-04-27 15:55:02 +08:00 committed by GitHub
commit 44262ba2e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 10 additions and 11 deletions

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testVersion, kompose }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, kompose }:
buildGoModule rec {
pname = "kompose";
@ -26,7 +26,7 @@ buildGoModule rec {
done
'';
passthru.tests.version = testVersion {
passthru.tests.version = testers.testVersion {
package = kompose;
command = "kompose version";
};

View file

@ -31,7 +31,6 @@
, CoreServices
, developer_cmds
, DarwinTools
, testVersion
, mysql-shell
}:

View file

@ -2,7 +2,7 @@
, stdenvNoCC
, fetchurl
, installShellFiles
, testVersion
, testers
, mas
}:
@ -25,7 +25,7 @@ stdenvNoCC.mkDerivation rec {
'';
passthru.tests = {
version = testVersion {
version = testers.testVersion {
package = mas;
command = "mas version";
};

View file

@ -4,7 +4,7 @@
, fetchpatch
, pkg-config
, openssl
, testVersion
, testers
, gbl
}:
@ -34,7 +34,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ openssl ];
passthru.tests.version =
testVersion { package = gbl; };
testers.testVersion { package = gbl; };
meta = with lib; {
description = "GBL Firmware file manipulation";

View file

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, testVersion, gosu }:
{ lib, buildGoModule, fetchFromGitHub, testers, gosu }:
buildGoModule rec {
pname = "gosu";
@ -15,7 +15,7 @@ buildGoModule rec {
ldflags = [ "-d" "-s" "-w" ];
passthru.tests.version = testVersion {
passthru.tests.version = testers.testVersion {
package = gosu;
};

View file

@ -6,7 +6,7 @@
, nix
, nix-index
, rustPlatform
, testVersion
, testers
}:
rustPlatform.buildRustPackage rec {
@ -31,7 +31,7 @@ rustPlatform.buildRustPackage rec {
'';
passthru.tests = {
version = testVersion { package = comma; };
version = testers.testVersion { package = comma; };
};
meta = with lib; {