Skip to content

Commit 663bafb

Browse files
trurl: replace testers.testVersion with versionCheckHook
Signed-off-by: Christoph Heiss <[email protected]>
1 parent 823938b commit 663bafb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkgs/by-name/tr/trurl/package.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
python3,
77
perl,
88
trurl,
9-
testers,
9+
versionCheckHook,
1010
}:
1111

1212
stdenv.mkDerivation rec {
@@ -46,9 +46,9 @@ stdenv.mkDerivation rec {
4646
nativeCheckInputs = [ python3 ];
4747
checkTarget = "test";
4848

49-
passthru.tests.version = testers.testVersion {
50-
package = trurl;
51-
};
49+
doInstallCheck = true;
50+
nativeInstallCheckInputs = [ versionCheckHook ];
51+
versionCheckProgramArg = "--version";
5252

5353
meta = with lib; {
5454
description = "Command line tool for URL parsing and manipulation";

0 commit comments

Comments
 (0)