jujutsu: use versionCheckHook

This commit is contained in:
Pol Dellaiera
2025-04-05 10:36:01 +02:00
parent fd565b8c60
commit c69453acaf
+6 -8
View File
@@ -14,8 +14,7 @@
openssh,
buildPackages,
nix-update-script,
testers,
jujutsu,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
@@ -87,14 +86,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
--zsh <(COMPLETE=zsh ${jj})
'';
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgram = "${placeholder "out"}/bin/jj";
versionCheckProgramArg = "--version";
passthru = {
updateScript = nix-update-script { };
tests = {
version = testers.testVersion {
package = jujutsu;
command = "jj --version";
};
};
};
meta = {