summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-08-16 21:47:51 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-08-16 21:47:51 +0000
commit8bfccbbcdff06e06d194d9d3ea181f13fc471e96 (patch)
tree1e1e0ff17d5f83bc833d97493bc75fce475b4aaa /pkgs/development
parentc2c7c18316b4db72c366813ec7bd5fef81580518 (diff)
downloadnixlib-8bfccbbcdff06e06d194d9d3ea181f13fc471e96.tar
nixlib-8bfccbbcdff06e06d194d9d3ea181f13fc471e96.tar.gz
nixlib-8bfccbbcdff06e06d194d9d3ea181f13fc471e96.tar.bz2
nixlib-8bfccbbcdff06e06d194d9d3ea181f13fc471e96.tar.lz
nixlib-8bfccbbcdff06e06d194d9d3ea181f13fc471e96.tar.xz
nixlib-8bfccbbcdff06e06d194d9d3ea181f13fc471e96.tar.zst
nixlib-8bfccbbcdff06e06d194d9d3ea181f13fc471e96.zip
* policy-kit: keep state in /var.
svn path=/nixpkgs/trunk/; revision=16737
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/policy-kit/default.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/development/libraries/policy-kit/default.nix b/pkgs/development/libraries/policy-kit/default.nix
index 5e01323e24b5..d3b2c67a0107 100644
--- a/pkgs/development/libraries/policy-kit/default.nix
+++ b/pkgs/development/libraries/policy-kit/default.nix
@@ -10,9 +10,20 @@ stdenv.mkDerivation rec {
   
   buildInputs = [ pkgconfig glib eggdbus expat pam intltool gettext ];
 
-  postInstall = ''
-    chmod a+rX -R "$out"
-  '';
+  configureFlags = "--localstatedir=/var";
+
+  installFlags = "localstatedir=$(TMPDIR)/var"; # keep `make install' happy
+  
+  postInstall =
+    ''
+      # Allow some files with paranoid permissions to be stripped in
+      # the fixup phase.
+      chmod a+rX -R $out
+
+      # Fix the pathname in the frobnicate example.
+      substituteInPlace $out/share/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy \
+          --replace /usr/bin/pk-example-frobnicate $out/bin/pk-example-frobnicate
+    '';
 
   meta = {
     homepage = http://www.freedesktop.org/wiki/Software/PolicyKit;