3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/polkit-gnome/default.nix

33 lines
996 B
Nix
Raw Normal View History

{ stdenv, fetchurl, polkit, gtk3, pkgconfig, intltool }:
2015-12-15 14:04:20 +00:00
let
version = "0.105";
in stdenv.mkDerivation rec {
name = "polkit-gnome-${version}";
src = fetchurl {
2015-12-15 14:04:20 +00:00
url = "mirror://gnome/sources/polkit-gnome/${version}/${name}.tar.xz";
sha256 = "0sckmcbxyj6sbrnfc5p5lnw27ccghsid6v6wxq09mgxqcd4lk10p";
};
buildInputs = [ polkit gtk3 ];
nativeBuildInputs = [ pkgconfig intltool ];
2015-12-15 14:04:20 +00:00
configureFlags = [ "--disable-introspection" ];
# 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 = https://hal.freedesktop.org/docs/PolicyKit/;
description = "A dbus session bus service that is used to bring up authentication dialogs";
license = stdenv.lib.licenses.gpl2;
maintainers = with stdenv.lib.maintainers; [ phreedom ];
2015-12-15 14:04:20 +00:00
platforms = stdenv.lib.platforms.linux;
};
}