2012-03-19 05:36:35 +01:00
|
|
|
{ stdenv, fetchurl, polkit, gtk3, pkgconfig, intltool }:
|
2011-03-26 19:18:39 +01:00
|
|
|
|
2015-12-15 15:04:20 +01:00
|
|
|
let
|
|
|
|
version = "0.105";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "polkit-gnome-${version}";
|
2011-03-26 19:18:39 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-12-15 15:04:20 +01:00
|
|
|
url = "mirror://gnome/sources/polkit-gnome/${version}/${name}.tar.xz";
|
2012-03-19 05:36:35 +01:00
|
|
|
sha256 = "0sckmcbxyj6sbrnfc5p5lnw27ccghsid6v6wxq09mgxqcd4lk10p";
|
2011-03-26 19:18:39 +01:00
|
|
|
};
|
|
|
|
|
2012-03-19 05:36:35 +01:00
|
|
|
buildInputs = [ polkit gtk3 ];
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
2011-03-26 19:18:39 +01:00
|
|
|
|
2015-12-15 15:04:20 +01:00
|
|
|
configureFlags = [ "--disable-introspection" ];
|
2011-03-26 19:18:39 +01:00
|
|
|
|
2012-03-19 05:36:35 +01: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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2011-03-26 19:18:39 +01:00
|
|
|
homepage = http://hal.freedesktop.org/docs/PolicyKit/;
|
|
|
|
description = "A dbus session bus service that is used to bring up authentication dialogs";
|
2012-03-19 05:36:35 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ urkud phreedom ];
|
2015-12-15 15:04:20 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2011-03-26 19:18:39 +01:00
|
|
|
};
|
2012-03-19 05:36:35 +01:00
|
|
|
}
|