weechat: use versionCheckHook

This commit is contained in:
Pol Dellaiera
2025-09-08 21:42:06 +02:00
parent daba1bdd24
commit 5b88dba016
@@ -38,6 +38,7 @@
libargon2,
extraBuildInputs ? [ ],
writeScript,
versionCheckHook,
}:
let
@@ -172,10 +173,8 @@ stdenv.mkDerivation rec {
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/weechat --version
'';
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = writeScript "update-weechat" ''
#!/usr/bin/env nix-shell