depot/third_party/nixpkgs/pkgs/applications/display-managers/greetd/gtkgreet.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

58 lines
1 KiB
Nix

{ stdenv
, lib
, fetchFromSourcehut
, wrapGAppsHook
, pkg-config
, cmake
, meson
, ninja
, gtk3
, gtk-layer-shell
, json_c
, librsvg
, scdoc
}:
stdenv.mkDerivation rec {
pname = "gtkgreet";
version = "0.8";
src = fetchFromSourcehut {
owner = "~kennylevinsen";
repo = pname;
rev = version;
sha256 = "sha256-GKBYql0hzqB6uY87SsAqHwf3qLAr7xznMnAjRtP4HS8=";
};
nativeBuildInputs = [
pkg-config
meson
ninja
cmake
wrapGAppsHook
];
buildInputs = [
gtk3
gtk-layer-shell
json_c
scdoc
librsvg
];
mesonFlags = [
"-Dlayershell=enabled"
];
# G_APPLICATION_FLAGS_NONE is deprecated in GLib 2.73.3+.
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
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;
mainProgram = "gtkgreet";
};
}