File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 2424 xz ,
2525 zlib ,
2626 zstd ,
27+ versionCheckHook ,
2728} :
2829
2930stdenv . 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 = ''
You can’t perform that action at this time.
0 commit comments