diff --git a/pkgs/by-name/pi/pipe-rename/package.nix b/pkgs/by-name/pi/pipe-rename/package.nix index 11e5008e6600..26a3e1a0f173 100644 --- a/pkgs/by-name/pi/pipe-rename/package.nix +++ b/pkgs/by-name/pi/pipe-rename/package.nix @@ -3,18 +3,21 @@ rustPlatform, fetchCrate, python3, + versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "pipe-rename"; - version = "1.6.6"; + version = "1.6.7"; src = fetchCrate { - inherit (finalAttrs) pname version; - hash = "sha256-eZldAhqmoIkNZaI6r31hI43KCPDDeWk3fKpY3/BaUQE="; + pname = "pipe-rename"; + inherit (finalAttrs) version; + hash = "sha256-9Pub+OCN+PiKHfCxflwkHp6JNSB8AqAtKsNTlAsANbA="; }; - cargoHash = "sha256-9xOL8qtUha4dL7V+GC8TnPGjBprKADqzIwOqqMyPB5A="; + cargoHash = "sha256-oYJNiUIi/uYxzd9DfgBgEaEy3g32r44seI56ur9UMcc="; nativeCheckInputs = [ python3 ]; @@ -28,11 +31,17 @@ 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 = [ ]; + maintainers = [ lib.maintainers.progrm_jarvis ]; mainProgram = "renamer"; }; })