2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, polkit, gtk3, pkg-config, intltool }:
|
2024-06-05 15:53:02 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "polkit-gnome";
|
|
|
|
version = "0.105";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2024-06-05 15:53:02 +00:00
|
|
|
url = "mirror://gnome/sources/polkit-gnome/${finalAttrs.version}/polkit-gnome-${finalAttrs.version}.tar.xz";
|
|
|
|
hash = "sha256-F4RJSWO4v5oA7txs06KGj7EjuKXlFuZsXtpI3xerk2k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ polkit gtk3 ];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config intltool ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--disable-introspection" ];
|
|
|
|
|
|
|
|
# Desktop file from Debian
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/etc/xdg/autostart
|
|
|
|
substituteAll ${./polkit-gnome-authentication-agent-1.desktop} $out/etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://gitlab.gnome.org/Archive/policykit-gnome";
|
2024-10-04 16:56:33 +00:00
|
|
|
changelog = "https://gitlab.gnome.org/Archive/policykit-gnome/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Dbus session bus service that is used to bring up authentication dialogs";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-06-05 15:53:02 +00:00
|
|
|
})
|