Unverified Commit b61108a7 authored by Acid Bong's avatar Acid Bong
Browse files

wlgreet: clean up and modernize

- removed `with lib;`
- replaced `rec` with `finalAttrs`
- removed redundant `useFetchCargoVendor`
parent d4bc7464
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -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;
  };
}
})