|
|
|
@ -180,18 +180,18 @@ in stdenv.mkDerivation { |
|
|
|
|
--replace "SYSTEMD_CGROUP_AGENT_PATH" "_SYSTEMD_CGROUP_AGENT_PATH" |
|
|
|
|
''; |
|
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = |
|
|
|
|
[ # Can't say ${polkit.bin}/bin/pkttyagent here because that would |
|
|
|
|
# lead to a cyclic dependency. |
|
|
|
|
"-UPOLKIT_AGENT_BINARY_PATH" "-DPOLKIT_AGENT_BINARY_PATH=\"/run/current-system/sw/bin/pkttyagent\"" |
|
|
|
|
NIX_CFLAGS_COMPILE = toString [ |
|
|
|
|
# Can't say ${polkit.bin}/bin/pkttyagent here because that would |
|
|
|
|
# lead to a cyclic dependency. |
|
|
|
|
"-UPOLKIT_AGENT_BINARY_PATH" "-DPOLKIT_AGENT_BINARY_PATH=\"/run/current-system/sw/bin/pkttyagent\"" |
|
|
|
|
|
|
|
|
|
# Set the release_agent on /sys/fs/cgroup/systemd to the |
|
|
|
|
# currently running systemd (/run/current-system/systemd) so |
|
|
|
|
# that we don't use an obsolete/garbage-collected release agent. |
|
|
|
|
"-USYSTEMD_CGROUP_AGENT_PATH" "-DSYSTEMD_CGROUP_AGENT_PATH=\"/run/current-system/systemd/lib/systemd/systemd-cgroups-agent\"" |
|
|
|
|
# Set the release_agent on /sys/fs/cgroup/systemd to the |
|
|
|
|
# currently running systemd (/run/current-system/systemd) so |
|
|
|
|
# that we don't use an obsolete/garbage-collected release agent. |
|
|
|
|
"-USYSTEMD_CGROUP_AGENT_PATH" "-DSYSTEMD_CGROUP_AGENT_PATH=\"/run/current-system/systemd/lib/systemd/systemd-cgroups-agent\"" |
|
|
|
|
|
|
|
|
|
"-USYSTEMD_BINARY_PATH" "-DSYSTEMD_BINARY_PATH=\"/run/current-system/systemd/lib/systemd/systemd\"" |
|
|
|
|
]; |
|
|
|
|
"-USYSTEMD_BINARY_PATH" "-DSYSTEMD_BINARY_PATH=\"/run/current-system/systemd/lib/systemd/systemd\"" |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
doCheck = false; # fails a bunch of tests |
|
|
|
|
|
|
|
|
|