From 1b93fe7d792dd8cdc24605820f6eb81059a6847d Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sat, 18 Apr 2026 18:05:51 -0400 Subject: [PATCH] xinit: include launchd files when sandboxed In sandbox, `autoconf` can't detect presence of `/sbin/launchd`, which makes the derivation not include `launchd` specific files. Later, `xquartz` fails because it relies on these files being present in `xinit` output. This patch forces installation of these files regardless of whether the `launchd` binary is seen in the build environment. --- pkgs/by-name/xi/xinit/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/xi/xinit/package.nix b/pkgs/by-name/xi/xinit/package.nix index cd1b7eb26009..af3c4a7ccdb3 100644 --- a/pkgs/by-name/xi/xinit/package.nix +++ b/pkgs/by-name/xi/xinit/package.nix @@ -56,6 +56,7 @@ stdenv.mkDerivation (finalAttrs: { "--with-xserver=${xorg-server.out}/bin/X" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + "--with-launchd=yes" "--with-bundle-id-prefix=org.nixos.xquartz" "--with-launchdaemons-dir=${placeholder "out"}/LaunchDaemons" "--with-launchagents-dir=${placeholder "out"}/LaunchAgents"