From c44aeaaaeddb7efbce8695ae47afab54188938fc Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Tue, 2 Dec 2025 21:45:00 +0000 Subject: [PATCH] bat: Use finalAttrs --- pkgs/by-name/ba/bat/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ba/bat/package.nix b/pkgs/by-name/ba/bat/package.nix index 51f873ae66dd..fa4d14282515 100644 --- a/pkgs/by-name/ba/bat/package.nix +++ b/pkgs/by-name/ba/bat/package.nix @@ -9,14 +9,14 @@ zlib, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "bat"; version = "0.26.1"; src = fetchFromGitHub { owner = "sharkdp"; repo = "bat"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-IbTvFT37BFo0tKOiApDL9sT+/nMD33MO3TXuho+lF2c="; }; @@ -78,7 +78,7 @@ rustPlatform.buildRustPackage rec { meta = { description = "Cat(1) clone with syntax highlighting and Git integration"; homepage = "https://github.com/sharkdp/bat"; - changelog = "https://github.com/sharkdp/bat/raw/v${version}/CHANGELOG.md"; + changelog = "https://github.com/sharkdp/bat/raw/v${finalAttrs.version}/CHANGELOG.md"; license = with lib.licenses; [ asl20 # or mit @@ -91,4 +91,4 @@ rustPlatform.buildRustPackage rec { sigmasquadron ]; }; -} +})