3
0
Fork 0
forked from mirrors/nixpkgs

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:
Eelco Dolstra 2012-08-21 08:33:10 -04:00
parent 1dadeaeb18
commit 6121046a1c

View file

@ -49,7 +49,14 @@ stdenv.mkDerivation rec {
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";