wget2: 2.1.0 -> 2.2.0 (#397868)

This commit is contained in:
Sandro
2025-04-11 13:54:19 +02:00
committed by GitHub
+12 -4
View File
@@ -24,11 +24,12 @@
xz,
zlib,
zstd,
versionCheckHook,
}:
stdenv.mkDerivation rec {
pname = "wget2";
version = "2.1.0";
version = "2.2.0";
outputs = [
"out"
@@ -39,14 +40,14 @@ stdenv.mkDerivation rec {
src = fetchFromGitLab {
owner = "gnuwget";
repo = pname;
rev = "v${version}";
hash = "sha256-+xw1nQMBs0m9RlunyrAYaSDPnLY1yRX8zt8hKOMXQT8=";
tag = "v${version}";
hash = "sha256-0tOoStZHr5opehFmuQdFRPYvOv8IMrDTBNFtoweY3VM=";
};
# wget2_noinstall contains forbidden reference to /build/
postPatch = ''
substituteInPlace src/Makefile.am \
--replace "bin_PROGRAMS = wget2 wget2_noinstall" "bin_PROGRAMS = wget2"
--replace-fail "bin_PROGRAMS = wget2 wget2_noinstall" "bin_PROGRAMS = wget2"
'';
strictDeps = true;
@@ -97,6 +98,13 @@ stdenv.mkDerivation rec {
(lib.withFeatureAs sslSupport "ssl" "openssl")
];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
versionCheckProgramArg = "--version";
meta = with lib; {
description = "Successor of GNU Wget, a file and recursive website downloader";
longDescription = ''