From a84aed35dfc8ec32db17de5a994134fa1acc3393 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Thu, 7 May 2026 14:53:57 +0300 Subject: [PATCH] pipe-rename: add nix-update-script --- pkgs/by-name/pi/pipe-rename/package.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/pi/pipe-rename/package.nix b/pkgs/by-name/pi/pipe-rename/package.nix index da98c2d61fc3..9c6001587b9e 100644 --- a/pkgs/by-name/pi/pipe-rename/package.nix +++ b/pkgs/by-name/pi/pipe-rename/package.nix @@ -3,6 +3,8 @@ rustPlatform, fetchCrate, python3, + versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -10,7 +12,8 @@ rustPlatform.buildRustPackage (finalAttrs: { version = "1.6.6"; src = fetchCrate { - inherit (finalAttrs) pname version; + pname = "pipe-rename"; + inherit (finalAttrs) version; hash = "sha256-eZldAhqmoIkNZaI6r31hI43KCPDDeWk3fKpY3/BaUQE="; }; @@ -28,9 +31,15 @@ rustPlatform.buildRustPackage (finalAttrs: { patchShebangs tests/editors/env-editor.py ''; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Rename your files using your favorite text editor"; homepage = "https://github.com/marcusbuffett/pipe-rename"; + changelog = "https://github.com/marcusbuffett/pipe-rename/releases/tag/${finalAttrs.version}"; license = lib.licenses.mit; maintainers = [ lib.maintainers.progrm_jarvis ]; mainProgram = "renamer";