nixpkgs/pkgs/applications/display-managers/greetd/gtkgreet.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.0 KiB
Nix
Raw Normal View History

2020-10-31 15:36:03 +00:00
{ stdenv
, lib
, fetchFromSourcehut
2023-08-14 15:06:59 +00:00
, wrapGAppsHook
2020-10-31 15:36:03 +00:00
, pkg-config
, cmake
, meson
, ninja
, gtk3
, gtk-layer-shell
, json_c
2023-08-14 15:06:59 +00:00
, librsvg
2020-10-31 15:36:03 +00:00
, scdoc
}:
stdenv.mkDerivation rec {
pname = "gtkgreet";
2023-10-29 09:42:27 +00:00
version = "0.8";
2020-10-31 15:36:03 +00:00
src = fetchFromSourcehut {
owner = "~kennylevinsen";
repo = pname;
rev = version;
2023-10-29 09:42:27 +00:00
sha256 = "sha256-GKBYql0hzqB6uY87SsAqHwf3qLAr7xznMnAjRtP4HS8=";
2020-10-31 15:36:03 +00:00
};
nativeBuildInputs = [
pkg-config
meson
ninja
cmake
2023-08-14 15:06:59 +00:00
wrapGAppsHook
2020-10-31 15:36:03 +00:00
];
buildInputs = [
gtk3
gtk-layer-shell
json_c
scdoc
2023-08-14 15:06:59 +00:00
librsvg
2020-10-31 15:36:03 +00:00
];
mesonFlags = [
"-Dlayershell=enabled"
];
# G_APPLICATION_FLAGS_NONE is deprecated in GLib 2.73.3+.
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
2020-10-31 15:36:03 +00:00
meta = with lib; {
description = "GTK based greeter for greetd, to be run under cage or similar";
homepage = "https://git.sr.ht/~kennylevinsen/gtkgreet";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ luc65r ];
platforms = platforms.linux;
2023-08-04 22:11:04 +00:00
mainProgram = "gtkgreet";
2020-10-31 15:36:03 +00:00
};
}