Merge pull request #107916 from MetaDark/wineStaging
wineStaging: fix mingwSupport
This commit is contained in:
commit
7699bf12fd
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv, lib, pkgArches, callPackage,
|
{ stdenv, lib, pkgArches, callPackage,
|
||||||
name, version, src, mingwGccs, monos, geckos, platforms,
|
name, version, src, mingwGccs, monos, geckos, platforms,
|
||||||
pkgconfig, fontforge, makeWrapper, flex, bison,
|
bison, flex, fontforge, makeWrapper, pkg-config,
|
||||||
|
autoconf, hexdump, perl,
|
||||||
supportFlags,
|
supportFlags,
|
||||||
patches,
|
patches,
|
||||||
buildScript ? null, configureFlags ? []
|
buildScript ? null, configureFlags ? []
|
||||||
|
@ -18,16 +19,24 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
|
||||||
inherit name src configureFlags;
|
inherit name src configureFlags;
|
||||||
|
|
||||||
# Fixes "Compiler cannot create executables" building wineWow with mingwSupport
|
# Fixes "Compiler cannot create executables" building wineWow with mingwSupport
|
||||||
# FIXME Breaks wineStaging builds
|
strictDeps = true;
|
||||||
strictDeps = supportFlags.mingwSupport;
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig fontforge makeWrapper flex bison
|
bison
|
||||||
|
flex
|
||||||
|
fontforge
|
||||||
|
makeWrapper
|
||||||
|
pkg-config
|
||||||
|
|
||||||
|
# Required by staging
|
||||||
|
autoconf
|
||||||
|
hexdump
|
||||||
|
perl
|
||||||
]
|
]
|
||||||
++ lib.optionals supportFlags.mingwSupport mingwGccs;
|
++ lib.optionals supportFlags.mingwSupport mingwGccs;
|
||||||
|
|
||||||
buildInputs = toBuildInputs pkgArches (with supportFlags; (pkgs:
|
buildInputs = toBuildInputs pkgArches (with supportFlags; (pkgs:
|
||||||
[ pkgs.freetype ]
|
[ pkgs.freetype pkgs.perl pkgs.xorg.libX11 ]
|
||||||
++ lib.optional stdenv.isLinux pkgs.libcap
|
++ lib.optional stdenv.isLinux pkgs.libcap
|
||||||
++ lib.optional pngSupport pkgs.libpng
|
++ lib.optional pngSupport pkgs.libpng
|
||||||
++ lib.optional jpegSupport pkgs.libjpeg
|
++ lib.optional jpegSupport pkgs.libjpeg
|
||||||
|
@ -72,8 +81,7 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
|
||||||
])
|
])
|
||||||
++ lib.optionals stdenv.isLinux (with pkgs.xorg; [
|
++ lib.optionals stdenv.isLinux (with pkgs.xorg; [
|
||||||
libXi libXcursor libXrandr libXrender libXxf86vm libXcomposite libXext
|
libXi libXcursor libXrandr libXrender libXxf86vm libXcomposite libXext
|
||||||
])
|
])));
|
||||||
++ [ pkgs.xorg.libX11 pkgs.perl ]));
|
|
||||||
|
|
||||||
patches = [ ] ++ patches';
|
patches = [ ] ++ patches';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue