Unverified Commit 82327f0a authored by Kenichi Kamiya's avatar Kenichi Kamiya
Browse files

wget2: add versionCheckHook

parent 050ef976
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
  xz,
  zlib,
  zstd,
  versionCheckHook,
}:

stdenv.mkDerivation rec {
@@ -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 = ''