tuigreet: clean up and modernize

- removed `with lib;`
- replaced `rec` with `finalAttrs`
- removed redundant `useFetchCargoVendor`
- updated fetcher attrs

Acid Bong 525b40eb 3f53712e

+5 -5
+5 -5
pkgs/by-name/tu/tuigreet/package.nix
··· 6 6 installShellFiles, 7 7 scdoc, 8 8 }: 9 - rustPlatform.buildRustPackage rec { 9 + rustPlatform.buildRustPackage (finalAttrs: { 10 10 pname = "tuigreet"; 11 11 version = "0.9.1"; 12 12 13 13 src = fetchFromGitHub { 14 14 owner = "apognu"; 15 15 repo = "tuigreet"; 16 - rev = "refs/tags/${version}"; 17 - sha256 = "sha256-e0YtpakEaaWdgu+bMr2VFoUc6+SUMFk4hYtSyk5aApY="; 16 + tag = finalAttrs.version; 17 + hash = "sha256-e0YtpakEaaWdgu+bMr2VFoUc6+SUMFk4hYtSyk5aApY="; 18 18 }; 19 19 20 20 cargoHash = "sha256-w6ZOqpwogKoN4oqqI1gFqY8xAnfvhEBVaL8/6JXpKXs="; ··· 32 32 meta = { 33 33 description = "Graphical console greeter for greetd"; 34 34 homepage = "https://github.com/apognu/tuigreet"; 35 - changelog = "https://github.com/apognu/tuigreet/releases/tag/${version}"; 35 + changelog = "https://github.com/apognu/tuigreet/releases/tag/${finalAttrs.version}"; 36 36 license = lib.licenses.gpl3Plus; 37 37 maintainers = with lib.maintainers; [ ]; 38 38 platforms = lib.platforms.linux; 39 39 mainProgram = "tuigreet"; 40 40 }; 41 - } 41 + })