Skip to content

Commit

Permalink
polkit: apply patch to fix pkexec without a graphical agent
Browse files Browse the repository at this point in the history
as seen in this issue this seems to be a common issue
NixOS#18012
  • Loading branch information
Artturin committed Nov 5, 2021
1 parent 164173d commit 3ef599d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/development/libraries/polkit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ stdenv.mkDerivation rec {
sha256 = "0p0zzmr0kh3mpmqya4q27y4h9b920zp5ya0i8909ahp9hvdrymy8";
};

patches = lib.optionals stdenv.hostPlatform.isMusl [
patches = [
# https://github.com/NixOS/nixpkgs/issues/18012
# https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/59
# if a graphical agent is not running pkexec fails to fallback to pkttyagent
(fetchpatch {
url = "https://gitlab.freedesktop.org/polkit/polkit/-/commit/716a273ce0af467968057f3e107156182bd290b0.patch";
sha256 = "sha256-hOJJhUmxXm87W1ZU9Y1NJ8GCyKvPjbIVtCHlhRGlN8k=";
})
] ++ lib.optionals stdenv.hostPlatform.isMusl [
# Make netgroup support optional (musl does not have it)
# Upstream MR: https://gitlab.freedesktop.org/polkit/polkit/merge_requests/10
# We use the version of the patch that Alpine uses successfully.
Expand Down

0 comments on commit 3ef599d

Please sign in to comment.