diff --git a/pkgs/by-name/ju/jujutsu/package.nix b/pkgs/by-name/ju/jujutsu/package.nix index 5e4fac2a8450..57e3b780b83d 100644 --- a/pkgs/by-name/ju/jujutsu/package.nix +++ b/pkgs/by-name/ju/jujutsu/package.nix @@ -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 = {