wlgreet: clean up and modernize

- removed `with lib;`
- replaced `rec` with `finalAttrs`
- removed redundant `useFetchCargoVendor`

Acid Bong b61108a7 d4bc7464

+8 -8
+8 -8
pkgs/by-name/wl/wlgreet/package.nix
··· 8 8 libxkbcommon, 9 9 }: 10 10 11 - rustPlatform.buildRustPackage rec { 11 + rustPlatform.buildRustPackage (finalAttrs: { 12 12 pname = "wlgreet"; 13 13 version = "0.5.0"; 14 14 15 15 src = fetchFromSourcehut { 16 16 owner = "~kennylevinsen"; 17 - repo = pname; 18 - rev = version; 17 + repo = "wlgreet"; 18 + rev = finalAttrs.version; 19 19 hash = "sha256-TQTHFBOTxtSuzrAG4cjZ9oirl80xc0rPdYeLJ0t39DQ="; 20 20 }; 21 21 ··· 30 30 libxkbcommon 31 31 ]; 32 32 33 - meta = with lib; { 33 + meta = { 34 34 description = "Raw wayland greeter for greetd, to be run under sway or similar"; 35 35 mainProgram = "wlgreet"; 36 36 homepage = "https://git.sr.ht/~kennylevinsen/wlgreet"; 37 - license = licenses.gpl3Plus; 38 - maintainers = with maintainers; [ ]; 39 - platforms = platforms.linux; 37 + license = lib.licenses.gpl3Plus; 38 + maintainers = with lib.maintainers; [ ]; 39 + platforms = lib.platforms.linux; 40 40 }; 41 - } 41 + })