From 789f013c5ab8a4eb2a47492ea14e4f95fea48824 Mon Sep 17 00:00:00 2001 From: Jasi Date: Wed, 25 Jun 2025 17:02:36 -0400 Subject: [PATCH] bankstown-lv2: use `finalAttrs`; remove unused `useFetchCargoVendor` --- pkgs/by-name/ba/bankstown-lv2/package.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ba/bankstown-lv2/package.nix b/pkgs/by-name/ba/bankstown-lv2/package.nix index 8b33d129417d..6147ed1e0f05 100644 --- a/pkgs/by-name/ba/bankstown-lv2/package.nix +++ b/pkgs/by-name/ba/bankstown-lv2/package.nix @@ -5,14 +5,14 @@ stdenv, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "bankstown-lv2"; version = "1.1.0"; src = fetchFromGitHub { owner = "chadmed"; repo = "bankstown"; - rev = version; + rev = finalAttrs.version; hash = "sha256-IThXEY+mvT2MCw0PSWU/182xbUafd6dtm6hNjieLlKg="; }; @@ -22,7 +22,6 @@ rustPlatform.buildRustPackage rec { "target/${stdenv.hostPlatform.rust.cargoShortTarget}/$cargoBuildType" ''; - useFetchCargoVendor = true; cargoHash = "sha256-eMN95QNnQtC7QDix9g3dwb9ZbtQuiVBj8+R+opFs0KI="; dontCargoInstall = true; @@ -42,4 +41,4 @@ rustPlatform.buildRustPackage rec { ]; platforms = platforms.linux; }; -} +})