gowitness: add versionCheckHook

Check that the binary continues to function after unpinning the module builder

+5
+5
pkgs/by-name/go/gowitness/package.nix
··· 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 }: 6 7 buildGoModule rec { ··· 21 "-s" 22 "-w" 23 ]; 24 25 meta = with lib; { 26 description = "Web screenshot utility";
··· 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 + versionCheckHook, 6 }: 7 8 buildGoModule rec { ··· 22 "-s" 23 "-w" 24 ]; 25 + 26 + doInstallCheck = true; 27 + nativeInstallCheckInputs = [ versionCheckHook ]; 28 + versionCheckProgramArg = "version"; 29 30 meta = with lib; { 31 description = "Web screenshot utility";