From bc526ff7cb33cfd1058311f1ce3dfe11da7213b3 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Sun, 29 Mar 2026 15:37:11 +0300 Subject: [PATCH] crabz: add nix-update-script --- pkgs/by-name/cr/crabz/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/cr/crabz/package.nix b/pkgs/by-name/cr/crabz/package.nix index 6e8f1e4b061f..4ac89d31b72b 100644 --- a/pkgs/by-name/cr/crabz/package.nix +++ b/pkgs/by-name/cr/crabz/package.nix @@ -3,6 +3,8 @@ rustPlatform, fetchFromGitHub, cmake, + versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -20,6 +22,11 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ cmake ]; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Cross platform, fast, compression and decompression tool"; homepage = "https://github.com/sstadick/crabz";