mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 22:28:55 +00:00
[26.05] mate-power-manager: Fix backlight-helper polkit popup (#540928)
This commit is contained in:
@@ -56,7 +56,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
mate-panel
|
||||
];
|
||||
|
||||
configureFlags = [ "--enable-applets" ];
|
||||
configureFlags = [
|
||||
"--enable-applets"
|
||||
"--sbindir=$(out)/bin"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Fixes polkit popup after `nixos-rebuild switch`.
|
||||
substituteInPlace src/gpm-brightness.c \
|
||||
--replace-fail 'SBINDIR "/mate-power-backlight-helper' '"/run/current-system/sw/bin/mate-power-backlight-helper'
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user