1 { lib, stdenv, fetchurl, polkit, gtk3, pkg-config, intltool }:
2 stdenv.mkDerivation (finalAttrs: {
3 pname = "polkit-gnome";
7 url = "mirror://gnome/sources/polkit-gnome/${finalAttrs.version}/polkit-gnome-${finalAttrs.version}.tar.xz";
8 hash = "sha256-F4RJSWO4v5oA7txs06KGj7EjuKXlFuZsXtpI3xerk2k=";
11 buildInputs = [ polkit gtk3 ];
12 nativeBuildInputs = [ pkg-config intltool ];
14 configureFlags = [ "--disable-introspection" ];
16 # Desktop file from Debian
18 mkdir -p $out/etc/xdg/autostart
19 substituteAll ${./polkit-gnome-authentication-agent-1.desktop} $out/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
23 homepage = "https://gitlab.gnome.org/Archive/policykit-gnome";
24 changelog = "https://gitlab.gnome.org/Archive/policykit-gnome/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
25 description = "Dbus session bus service that is used to bring up authentication dialogs";
26 license = lib.licenses.lgpl2Plus;
28 platforms = lib.platforms.linux;