Merge pull request #300580 from danrabinowitz/fix-macos-build

libvirt: Use valid runstatedir for Darwin
This commit is contained in:
Weijia Wang 2024-04-03 13:40:12 +02:00 committed by GitHub
commit d64412c5b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -271,7 +271,7 @@ stdenv.mkDerivation rec {
"--sysconfdir=/var/lib"
(cfg "install_prefix" (placeholder "out"))
(cfg "localstatedir" "/var")
(cfg "runstatedir" "/run")
(cfg "runstatedir" (if isDarwin then "/var/run" else "/run"))
(cfg "init_script" (if isDarwin then "none" else "systemd"))
(cfg "qemu_datadir" (lib.optionalString isDarwin "${qemu}/share/qemu"))