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