diff --git a/pkgs/by-name/wg/wget2/package.nix b/pkgs/by-name/wg/wget2/package.nix index f7886a0bf144..c99b96b76424 100644 --- a/pkgs/by-name/wg/wget2/package.nix +++ b/pkgs/by-name/wg/wget2/package.nix @@ -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 = ''