systemd: configure as release build

Without this we enable some assertions and checks that we don't want in
production code:

09cd639a59/docs/HACKING.md (developer-and-release-modes)

Fixes https://github.com/NixOS/nixpkgs/issues/201058
This commit is contained in:
Jörg Thalheim 2022-11-14 13:01:02 +01:00
parent 93ecbae3d6
commit f74e68b70a

View file

@ -406,6 +406,7 @@ stdenv.mkDerivation {
# https://github.com/systemd/systemd/blob/60e930fc3e6eb8a36fbc184773119eb8d2f30364/NEWS#L258-L266
"-Dtime-epoch=${releaseTimestamp}"
"-Dmode=release"
"-Ddbuspolicydir=${placeholder "out"}/share/dbus-1/system.d"
"-Ddbussessionservicedir=${placeholder "out"}/share/dbus-1/services"
"-Ddbussystemservicedir=${placeholder "out"}/share/dbus-1/system-services"