From 786a0a8b2f6c5b313e8583be14f6d929ff33653d Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 3 May 2026 10:32:17 +0200 Subject: [PATCH] nixfmt-rs: 0.1.4 -> 0.2.0 Diff: https://github.com/Mic92/nixfmt-rs/compare/0.1.4...0.2.0 Changelog: https://github.com/Mic92/nixfmt-rs/releases/tag/0.2.0 --- pkgs/by-name/ni/nixfmt-rs/package.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ni/nixfmt-rs/package.nix b/pkgs/by-name/ni/nixfmt-rs/package.nix index 3e94cda929db..d76078afe2ec 100644 --- a/pkgs/by-name/ni/nixfmt-rs/package.nix +++ b/pkgs/by-name/ni/nixfmt-rs/package.nix @@ -2,14 +2,16 @@ lib, rustPlatform, fetchFromGitHub, + installShellFiles, versionCheckHook, nix-update-script, nixfmt, + gitMinimal, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "nixfmt-rs"; - version = "0.1.4"; + version = "0.2.0"; __structuredAttrs = true; strictDeps = true; @@ -18,15 +20,24 @@ rustPlatform.buildRustPackage (finalAttrs: { owner = "Mic92"; repo = "nixfmt-rs"; tag = finalAttrs.version; - hash = "sha256-lfT+cFys0iJGkOgLO8LR7lnKMG7ZKJTVvOCm6dSBf8w="; + hash = "sha256-eBVi22+EGMYWv2t/seoPqou8PuABxVcsWTFcrNYP6So="; }; - cargoHash = "sha256-TmZi99xxTlSTpqr6k29CsnTK8qfj5gjs1AGkx1hcXCg="; + cargoHash = "sha256-fadjOtfB8bFuhTN9mAmi2A526boW7Aje39IBjdxszok="; + + nativeBuildInputs = [ installShellFiles ]; + + postInstall = '' + installManPage docs/* + ''; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; - nativeCheckInputs = [ nixfmt ]; + nativeCheckInputs = [ + gitMinimal + nixfmt + ]; passthru.updateScript = nix-update-script { };