3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #245447 from thoughtfull-systems/fix-xfpm-polkit-on-rebuild

xfce.xfce4-power-manager: use fixed path for helpers
This commit is contained in:
Bobby Rong 2023-07-29 14:00:15 +08:00 committed by GitHub
commit a4c0bbf98b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,6 +26,14 @@ mkXfceDerivation {
xfce4-panel
];
# using /run/current-system/sw/bin instead of nix store path prevents polkit permission errors on
# rebuild. See https://github.com/NixOS/nixpkgs/issues/77485
postPatch = ''
substituteInPlace src/org.xfce.power.policy.in2 --replace "@sbindir@" "/run/current-system/sw/bin"
substituteInPlace common/xfpm-brightness.c --replace "SBINDIR" "\"/run/current-system/sw/bin\""
substituteInPlace src/xfpm-suspend.c --replace "SBINDIR" "\"/run/current-system/sw/bin\""
'';
meta = with lib; {
description = "A power manager for the Xfce Desktop Environment";
maintainers = with maintainers; [ ] ++ teams.xfce.members;