2021-01-16 19:51:22 -08:00
|
|
|
{ lib, stdenv, fetchurl, polkit, gtk3, pkg-config, intltool }:
|
2019-04-24 23:46:07 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "polkit-gnome";
|
2015-12-15 06:04:20 -08:00
|
|
|
version = "0.105";
|
|
|
|
|
2011-03-26 11:18:39 -07:00
|
|
|
src = fetchurl {
|
2019-04-24 23:46:07 -07:00
|
|
|
url = "mirror://gnome/sources/polkit-gnome/${version}/${pname}-${version}.tar.xz";
|
2012-03-18 21:36:35 -07:00
|
|
|
sha256 = "0sckmcbxyj6sbrnfc5p5lnw27ccghsid6v6wxq09mgxqcd4lk10p";
|
2011-03-26 11:18:39 -07:00
|
|
|
};
|
|
|
|
|
2012-03-18 21:36:35 -07:00
|
|
|
buildInputs = [ polkit gtk3 ];
|
2021-01-16 19:51:22 -08:00
|
|
|
nativeBuildInputs = [ pkg-config intltool ];
|
2011-03-26 11:18:39 -07:00
|
|
|
|
2015-12-15 06:04:20 -08:00
|
|
|
configureFlags = [ "--disable-introspection" ];
|
2011-03-26 11:18:39 -07:00
|
|
|
|
2012-03-18 21:36:35 -07:00
|
|
|
# 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
|
2019-04-24 23:46:07 -07:00
|
|
|
'';
|
2012-03-18 21:36:35 -07:00
|
|
|
|
|
|
|
meta = {
|
2019-05-04 06:59:55 -07:00
|
|
|
homepage = "https://gitlab.gnome.org/Archive/policykit-gnome";
|
2011-03-26 11:18:39 -07:00
|
|
|
description = "A dbus session bus service that is used to bring up authentication dialogs";
|
2021-01-15 01:19:50 -08:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ phreedom ];
|
|
|
|
platforms = lib.platforms.linux;
|
2011-03-26 11:18:39 -07:00
|
|
|
};
|
2012-03-18 21:36:35 -07:00
|
|
|
}
|