summary refs log tree commit diff
path: root/pkgs/tools/security/polkit-gnome/default.nix
diff options
context:
space:
mode:
authorYury G. Kudryashov <urkud.urkud@gmail.com>2012-03-19 04:36:35 +0000
committerYury G. Kudryashov <urkud.urkud@gmail.com>2012-03-19 04:36:35 +0000
commit066896556f183a55de2bce8749fab51d53a2f05b (patch)
treecd0562e8590ddfd9668761b17415b718412b7d1a /pkgs/tools/security/polkit-gnome/default.nix
parenta466941945bc0e55f940853dca3a3343ccc9c559 (diff)
downloadnixpkgs-066896556f183a55de2bce8749fab51d53a2f05b.tar
nixpkgs-066896556f183a55de2bce8749fab51d53a2f05b.tar.gz
nixpkgs-066896556f183a55de2bce8749fab51d53a2f05b.tar.bz2
nixpkgs-066896556f183a55de2bce8749fab51d53a2f05b.tar.lz
nixpkgs-066896556f183a55de2bce8749fab51d53a2f05b.tar.xz
nixpkgs-066896556f183a55de2bce8749fab51d53a2f05b.tar.zst
nixpkgs-066896556f183a55de2bce8749fab51d53a2f05b.zip
polkit-gnome-0.105
Depends on gtk-3, install .desktop file.

svn path=/nixpkgs/branches/glib-2.30-take2/; revision=33251
Diffstat (limited to 'pkgs/tools/security/polkit-gnome/default.nix')
-rw-r--r--pkgs/tools/security/polkit-gnome/default.nix30
1 files changed, 18 insertions, 12 deletions
diff --git a/pkgs/tools/security/polkit-gnome/default.nix b/pkgs/tools/security/polkit-gnome/default.nix
index 9adab0fb0c2..b70aa427031 100644
--- a/pkgs/tools/security/polkit-gnome/default.nix
+++ b/pkgs/tools/security/polkit-gnome/default.nix
@@ -1,22 +1,28 @@
-{ stdenv, fetchurl, pkgconfig, gtk, polkit, dbus_glib, intltool }:
-stdenv.mkDerivation rec {
+{ stdenv, fetchurl, polkit, gtk3, pkgconfig, intltool }:
 
-  name = "polkit-gnome-${version}";
-  version = "0.96";
+stdenv.mkDerivation {
+  name = "polkit-gnome-0.105";
 
   src = fetchurl {
-    url = http://hal.freedesktop.org/releases/polkit-gnome-0.96.tar.bz2;
-    sha256 = "14la7j3h1k1s88amkcv8rzq9wmhgzypvxpwaxwg2x2k55l1wi5hd";
+    url = mirror://gnome/sources/polkit-gnome/0.105/polkit-gnome-0.105.tar.xz;
+    sha256 = "0sckmcbxyj6sbrnfc5p5lnw27ccghsid6v6wxq09mgxqcd4lk10p";
   };
 
-  buildInputs = [ pkgconfig gtk polkit dbus_glib intltool ];
+  buildInputs = [ polkit gtk3 ];
+  buildNativeInputs = [ pkgconfig intltool ];
 
-  configureFlags = [ "--disable-introspection" ];
+  configureFlags = "--disable-introspection";
 
-  meta = with stdenv.lib; {
+  # 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 = http://hal.freedesktop.org/docs/PolicyKit/;
     description = "A dbus session bus service that is used to bring up authentication dialogs";
-    license = licenses.gpl2;
-    maintainers = [ maintainers.phreedom ];
+    license = stdenv.lib.licenses.gpl2;
+    maintainers = with stdenv.lib.maintainers; [ urkud phreedom ];
   };
-}
\ No newline at end of file
+}