wlgreet: clean up and modernize

- removed `with lib;`
- replaced `rec` with `finalAttrs`
- removed redundant `useFetchCargoVendor`
This commit is contained in:
Acid Bong
2025-08-02 21:16:55 +03:00
parent d4bc74646a
commit b61108a776
+8 -8
View File
@@ -8,14 +8,14 @@
libxkbcommon,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "wlgreet";
version = "0.5.0";
src = fetchFromSourcehut {
owner = "~kennylevinsen";
repo = pname;
rev = version;
repo = "wlgreet";
rev = finalAttrs.version;
hash = "sha256-TQTHFBOTxtSuzrAG4cjZ9oirl80xc0rPdYeLJ0t39DQ=";
};
@@ -30,12 +30,12 @@ rustPlatform.buildRustPackage rec {
libxkbcommon
];
meta = with lib; {
meta = {
description = "Raw wayland greeter for greetd, to be run under sway or similar";
mainProgram = "wlgreet";
homepage = "https://git.sr.ht/~kennylevinsen/wlgreet";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ ];
platforms = platforms.linux;
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ ];
platforms = lib.platforms.linux;
};
}
})