Skip to content

Commit 82327f0

Browse files
committed
wget2: add versionCheckHook
1 parent 050ef97 commit 82327f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/by-name/wg/wget2/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
xz,
2525
zlib,
2626
zstd,
27+
versionCheckHook,
2728
}:
2829

2930
stdenv.mkDerivation rec {
@@ -97,6 +98,13 @@ stdenv.mkDerivation rec {
9798
(lib.withFeatureAs sslSupport "ssl" "openssl")
9899
];
99100

101+
nativeInstallCheckInputs = [
102+
versionCheckHook
103+
];
104+
doInstallCheck = true;
105+
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
106+
versionCheckProgramArg = "--version";
107+
100108
meta = with lib; {
101109
description = "Successor of GNU Wget, a file and recursive website downloader";
102110
longDescription = ''

0 commit comments

Comments
 (0)