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

regreet: clean up and modernize

- removed `with lib;`
- replaced `rec` with `finalAttrs`
- removed redundant `useFetchCargoVendor`
parent 32d4d81c
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -10,14 +10,14 @@
  librsvg,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "regreet";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "rharish101";
    repo = "ReGreet";
    rev = version;
    rev = finalAttrs.version;
    hash = "sha256-f8Xvno5QqmWz4SUiFYDvs8lFU1ZaqQ8gpTaVzWxW4T8=";
  };

@@ -36,12 +36,12 @@ rustPlatform.buildRustPackage rec {
    librsvg
  ];

  meta = with lib; {
  meta = {
    description = "Clean and customizable greeter for greetd";
    homepage = "https://github.com/rharish101/ReGreet";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ fufexan ];
    platforms = platforms.linux;
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ fufexan ];
    platforms = lib.platforms.linux;
    mainProgram = "regreet";
  };
}
})