Skip to content

Commit 8b4ff7b

Browse files
wget2: 2.1.0 -> 2.2.0 (#397868)
2 parents 6f061f3 + 9e100b6 commit 8b4ff7b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@
2424
xz,
2525
zlib,
2626
zstd,
27+
versionCheckHook,
2728
}:
2829

2930
stdenv.mkDerivation rec {
3031
pname = "wget2";
31-
version = "2.1.0";
32+
version = "2.2.0";
3233

3334
outputs = [
3435
"out"
@@ -39,14 +40,14 @@ stdenv.mkDerivation rec {
3940
src = fetchFromGitLab {
4041
owner = "gnuwget";
4142
repo = pname;
42-
rev = "v${version}";
43-
hash = "sha256-+xw1nQMBs0m9RlunyrAYaSDPnLY1yRX8zt8hKOMXQT8=";
43+
tag = "v${version}";
44+
hash = "sha256-0tOoStZHr5opehFmuQdFRPYvOv8IMrDTBNFtoweY3VM=";
4445
};
4546

4647
# wget2_noinstall contains forbidden reference to /build/
4748
postPatch = ''
4849
substituteInPlace src/Makefile.am \
49-
--replace "bin_PROGRAMS = wget2 wget2_noinstall" "bin_PROGRAMS = wget2"
50+
--replace-fail "bin_PROGRAMS = wget2 wget2_noinstall" "bin_PROGRAMS = wget2"
5051
'';
5152

5253
strictDeps = true;
@@ -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)