systemd: Set the path to pkttyagent
This allows commands like "systemctl reboot" to ask for authentication when run by mere mortals.
This commit is contained in:
parent
1dadeaeb18
commit
6121046a1c
@ -49,7 +49,14 @@ stdenv.mkDerivation rec {
|
|||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-DKBD_LOADKEYS=\"${kbd}/bin/loadkeys\" -DKBD_SETFONT=\"${kbd}/bin/setfont\" -fno-stack-protector";
|
NIX_CFLAGS_COMPILE =
|
||||||
|
[ "-DKBD_LOADKEYS=\"${kbd}/bin/loadkeys\""
|
||||||
|
"-DKBD_SETFONT=\"${kbd}/bin/setfont\""
|
||||||
|
# Can't say ${polkit}/bin/pkttyagent here because that would
|
||||||
|
# lead to a cyclic dependency.
|
||||||
|
"-DPOLKIT_AGENT_BINARY_PATH=\"/run/current-system/sw/bin/pkttyagent\""
|
||||||
|
"-fno-stack-protector"
|
||||||
|
];
|
||||||
|
|
||||||
makeFlags = "CPPFLAGS=-I${stdenv.gcc.libc}/include";
|
makeFlags = "CPPFLAGS=-I${stdenv.gcc.libc}/include";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user