1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 wrapGAppsHook4,
7 glib,
8 gtk4,
9 pango,
10 librsvg,
11}:
12
13rustPlatform.buildRustPackage rec {
14 pname = "regreet";
15 version = "0.2.0";
16
17 src = fetchFromGitHub {
18 owner = "rharish101";
19 repo = "ReGreet";
20 rev = version;
21 hash = "sha256-f8Xvno5QqmWz4SUiFYDvs8lFU1ZaqQ8gpTaVzWxW4T8=";
22 };
23
24 cargoHash = "sha256-abCQ3RsnZ/a1DbjQFOiA7Xs7bbqSJxwNps8yV6Q4FIw=";
25
26 buildFeatures = [ "gtk4_8" ];
27
28 nativeBuildInputs = [
29 pkg-config
30 wrapGAppsHook4
31 ];
32 buildInputs = [
33 glib
34 gtk4
35 pango
36 librsvg
37 ];
38
39 meta = with lib; {
40 description = "Clean and customizable greeter for greetd";
41 homepage = "https://github.com/rharish101/ReGreet";
42 license = licenses.gpl3Plus;
43 maintainers = with maintainers; [ fufexan ];
44 platforms = platforms.linux;
45 mainProgram = "regreet";
46 };
47}