From 525b40ebed4d4bcd70decab1e332190ab51b4168 Mon Sep 17 00:00:00 2001 From: Acid Bong Date: Wed, 23 Jul 2025 21:04:48 +0300 Subject: [PATCH] tuigreet: clean up and modernize - removed `with lib;` - replaced `rec` with `finalAttrs` - removed redundant `useFetchCargoVendor` - updated fetcher attrs --- pkgs/by-name/tu/tuigreet/package.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/tu/tuigreet/package.nix b/pkgs/by-name/tu/tuigreet/package.nix index 19ca3c8b592d..ef5f2320decb 100644 --- a/pkgs/by-name/tu/tuigreet/package.nix +++ b/pkgs/by-name/tu/tuigreet/package.nix @@ -6,15 +6,15 @@ installShellFiles, scdoc, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "tuigreet"; version = "0.9.1"; src = fetchFromGitHub { owner = "apognu"; repo = "tuigreet"; - rev = "refs/tags/${version}"; - sha256 = "sha256-e0YtpakEaaWdgu+bMr2VFoUc6+SUMFk4hYtSyk5aApY="; + tag = finalAttrs.version; + hash = "sha256-e0YtpakEaaWdgu+bMr2VFoUc6+SUMFk4hYtSyk5aApY="; }; cargoHash = "sha256-w6ZOqpwogKoN4oqqI1gFqY8xAnfvhEBVaL8/6JXpKXs="; @@ -32,10 +32,10 @@ rustPlatform.buildRustPackage rec { meta = { description = "Graphical console greeter for greetd"; homepage = "https://github.com/apognu/tuigreet"; - changelog = "https://github.com/apognu/tuigreet/releases/tag/${version}"; + changelog = "https://github.com/apognu/tuigreet/releases/tag/${finalAttrs.version}"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ ]; platforms = lib.platforms.linux; mainProgram = "tuigreet"; }; -} +})