Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
30 lines
1.1 KiB
Nix
30 lines
1.1 KiB
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";
|
|
changelog = "https://gitlab.gnome.org/Archive/policykit-gnome/-/blob/${finalAttrs.version}/NEWS?ref_type=tags";
|
|
description = "Dbus session bus service that is used to bring up authentication dialogs";
|
|
license = lib.licenses.lgpl2Plus;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|