depot/third_party/nixpkgs/pkgs/tools/security/polkit-gnome/default.nix
Default email 646c172193 Project import generated by Copybara.
GitOrigin-RevId: c478eaf416411a7dedf773185b6d5bfc966a80ae
2021-12-21 10:18:32 +08:00

29 lines
976 B
Nix

{ lib, stdenv, fetchurl, polkit, gtk3, pkg-config, intltool }:
stdenv.mkDerivation rec {
pname = "polkit-gnome";
version = "0.105";
src = fetchurl {
url = "mirror://gnome/sources/polkit-gnome/${version}/${pname}-${version}.tar.xz";
sha256 = "0sckmcbxyj6sbrnfc5p5lnw27ccghsid6v6wxq09mgxqcd4lk10p";
};
buildInputs = [ polkit gtk3 ];
nativeBuildInputs = [ pkg-config intltool ];
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://gitlab.gnome.org/Archive/policykit-gnome";
description = "A dbus session bus service that is used to bring up authentication dialogs";
license = lib.licenses.lgpl2Plus;
maintainers = with lib.maintainers; [ ];
platforms = lib.platforms.linux;
};
}