From 236793dc4e4e9a5bf2fcbca1ba4978b657b28abb Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Sun, 29 Mar 2026 15:28:52 +0300 Subject: [PATCH] nomino: add nix-update-script --- pkgs/by-name/no/nomino/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/no/nomino/package.nix b/pkgs/by-name/no/nomino/package.nix index 30b6e86f5363..b75d0f0545f6 100644 --- a/pkgs/by-name/no/nomino/package.nix +++ b/pkgs/by-name/no/nomino/package.nix @@ -2,6 +2,8 @@ lib, rustPlatform, fetchFromGitHub, + versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -17,10 +19,15 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoHash = "sha256-daHhCr55RzIHooGXBK831SYD1b8NPEDD6mtDut6nuaQ="; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Batch rename utility for developers"; homepage = "https://github.com/yaa110/nomino"; - changelog = "https://github.com/yaa110/nomino/releases/tag/${finalAttrs.src.rev}"; + changelog = "https://github.com/yaa110/nomino/releases/tag/v${finalAttrs.version}"; license = with lib.licenses; [ mit # or asl20