wineWowPackages.minimal: fix build (missing --without-x)

Without the change build fails on `master` as
https://hydra.nixos.org/build/249529907:

    checking for X... no
    configure: error: X 64-bit development files not found. Wine will be built
    without X support, which probably isn't what you want. You will need
    to install 64-bit development packages of Xlib at the very least.
    Use the --without-x option if you really want this.

The change explicitly passes `--without-x` for `wine` without
`x11Support`.

Co-authored-by: MinerSebas <66798382+MinerSebas@users.noreply.github.com>
This commit is contained in:
Sergei Trofimovich
2024-02-24 08:02:22 +00:00
co-authored by MinerSebas
parent 7f81b2dee0
commit 8f3b751ca8
+1 -1
View File
@@ -134,7 +134,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
configureFlags = prevConfigFlags
++ lib.optionals supportFlags.waylandSupport [ "--with-wayland" ]
++ lib.optionals supportFlags.vulkanSupport [ "--with-vulkan" ]
++ lib.optionals (stdenv.isDarwin && !supportFlags.xineramaSupport) [ "--without-x" ];
++ lib.optionals ((stdenv.isDarwin && !supportFlags.xineramaSupport) || !supportFlags.x11Support) [ "--without-x" ];
# Wine locates a lot of libraries dynamically through dlopen(). Add
# them to the RPATH so that the user doesn't have to set them in