nixpkgs/pkgs/applications/display-managers/greetd/gtkgreet.nix
Sam Connelly 7c66fb1ec5 migrate maintainership from luc65r to clevor
They said they haven't used Nix in a while and is not interested in
maintaining cemu-ti (presumably other packages too), so I asked to take
over his role. I removed luc65r from the meta.maintainers attribtes, and
adopted the packages I wanted to adopt. I chose to adopt the TI graphing
calculator-related packages as I am part of Cemetech.
2024-11-17 14:30:20 -05:00

65 lines
1.2 KiB
Nix

{ stdenv
, lib
, fetchFromSourcehut
, wrapGAppsHook3
, 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=";
};
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
pkg-config
meson
ninja
cmake
scdoc
wrapGAppsHook3
];
buildInputs = [
gtk3
gtk-layer-shell
json_c
librsvg
];
mesonFlags = [
"-Dlayershell=enabled"
];
postPatch = ''
substituteInPlace meson.build \
--replace "dependency('scdoc'," "dependency('scdoc', native:true,"
'';
# 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; [ ];
platforms = platforms.linux;
mainProgram = "gtkgreet";
};
}