depot/third_party/nixpkgs/pkgs/by-name/po/polkit_gnome/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
1,007 B
Nix

{ lib, stdenv, fetchurl, polkit, gtk3, pkg-config, intltool }:
stdenv.mkDerivation (finalAttrs: {
pname = "polkit-gnome";
version = "0.105";
src = fetchurl {
url = "mirror://gnome/sources/polkit-gnome/${finalAttrs.version}/polkit-gnome-${finalAttrs.version}.tar.xz";
hash = "sha256-F4RJSWO4v5oA7txs06KGj7EjuKXlFuZsXtpI3xerk2k=";
};
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 = "Dbus session bus service that is used to bring up authentication dialogs";
license = lib.licenses.lgpl2Plus;
maintainers = with lib.maintainers; [ ];
platforms = lib.platforms.linux;
};
})