diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index b39855921bbf..c91f0c32c3cd 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -378,7 +378,7 @@ in xinit = attrs: attrs // { stdenv = if isDarwin then args.clangStdenv else stdenv; - buildInputs = if isDarwin then [ args.bootstrap_cmds args.pkgconfig ] else null; + buildInputs = attrs.buildInputs ++ lib.optional isDarwin args.bootstrap_cmds; configureFlags = [ "--with-xserver=${xorg.xorgserver}/bin/X" ] ++ lib.optionals isDarwin [