Replace use of testVersion alias

- lndconnect: Drop unused input `testVersion`
- other packages: Import `testers` and use `testers.testVersion`
This commit is contained in:
Berk D. Demir 2022-06-26 17:41:46 +00:00
parent dd9c76a307
commit a9f912498f
5 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, testVersion, lndconnect }:
{ lib, buildGoModule, fetchFromGitHub, lndconnect }:
buildGoModule rec {
pname = "lndconnect";
version = "0.2.1";

View File

@ -5,7 +5,7 @@
, gtk3
, mcomix
, python3
, testVersion
, testers
, wrapGAppsHook
# Recommended Dependencies:
@ -46,7 +46,7 @@ python3.pkgs.buildPythonApplication rec {
)
'';
passthru.tests.version = testVersion {
passthru.tests.version = testers.testVersion {
package = mcomix;
};

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testVersion, roxctl }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, roxctl }:
buildGoModule rec {
pname = "roxctl";
@ -30,7 +30,7 @@ buildGoModule rec {
--zsh <($out/bin/roxctl completion zsh)
'';
passthru.tests.version = testVersion {
passthru.tests.version = testers.testVersion {
package = roxctl;
command = "roxctl version";
};

View File

@ -7,7 +7,7 @@
, rustPlatform
, Security
, stdenv
, testVersion
, testers
}:
let
@ -28,7 +28,7 @@ rustPlatform.buildRustPackage {
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
passthru.tests.version = testVersion {
passthru.tests.version = testers.testVersion {
package = gfold;
command = "gfold --version";
inherit version;

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, less, more, installShellFiles, testVersion, jira-cli-go }:
{ lib, buildGoModule, fetchFromGitHub, less, more, installShellFiles, testers, jira-cli-go }:
buildGoModule rec {
pname = "jira-cli-go";
@ -22,7 +22,7 @@ buildGoModule rec {
checkInputs = [ less more ]; # Tests expect a pager in $PATH
passthru.tests.version = testVersion {
passthru.tests.version = testers.testVersion {
package = jira-cli-go;
command = "jira version";
inherit version;