forked from mirrors/nixpkgs
Merge pull request #155536 from SFrijters/wine-remove-libraries
wine: Remove bundled libraries
This commit is contained in:
commit
8b46ac6596
|
@ -43,16 +43,11 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
|
||||||
buildInputs = toBuildInputs pkgArches (with supportFlags; (pkgs:
|
buildInputs = toBuildInputs pkgArches (with supportFlags; (pkgs:
|
||||||
[ pkgs.freetype pkgs.perl ]
|
[ pkgs.freetype pkgs.perl ]
|
||||||
++ lib.optional stdenv.isLinux pkgs.libcap
|
++ lib.optional stdenv.isLinux pkgs.libcap
|
||||||
++ lib.optional pngSupport pkgs.libpng
|
|
||||||
++ lib.optional jpegSupport pkgs.libjpeg
|
|
||||||
++ lib.optional cupsSupport pkgs.cups
|
++ lib.optional cupsSupport pkgs.cups
|
||||||
++ lib.optional colorManagementSupport pkgs.lcms2
|
|
||||||
++ lib.optional gettextSupport pkgs.gettext
|
++ lib.optional gettextSupport pkgs.gettext
|
||||||
++ lib.optional dbusSupport pkgs.dbus
|
++ lib.optional dbusSupport pkgs.dbus
|
||||||
++ lib.optional mpg123Support pkgs.mpg123
|
|
||||||
++ lib.optional openalSupport pkgs.openal
|
++ lib.optional openalSupport pkgs.openal
|
||||||
++ lib.optional cairoSupport pkgs.cairo
|
++ lib.optional cairoSupport pkgs.cairo
|
||||||
++ lib.optional tiffSupport pkgs.libtiff
|
|
||||||
++ lib.optional odbcSupport pkgs.unixODBC
|
++ lib.optional odbcSupport pkgs.unixODBC
|
||||||
++ lib.optional netapiSupport pkgs.samba4
|
++ lib.optional netapiSupport pkgs.samba4
|
||||||
++ lib.optional cursesSupport pkgs.ncurses
|
++ lib.optional cursesSupport pkgs.ncurses
|
||||||
|
@ -60,7 +55,6 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
|
||||||
++ lib.optional pcapSupport pkgs.libpcap
|
++ lib.optional pcapSupport pkgs.libpcap
|
||||||
++ lib.optional v4lSupport pkgs.libv4l
|
++ lib.optional v4lSupport pkgs.libv4l
|
||||||
++ lib.optional saneSupport pkgs.sane-backends
|
++ lib.optional saneSupport pkgs.sane-backends
|
||||||
++ lib.optional gsmSupport pkgs.gsm
|
|
||||||
++ lib.optional gphoto2Support pkgs.libgphoto2
|
++ lib.optional gphoto2Support pkgs.libgphoto2
|
||||||
++ lib.optional ldapSupport pkgs.openldap
|
++ lib.optional ldapSupport pkgs.openldap
|
||||||
++ lib.optional fontconfigSupport pkgs.fontconfig
|
++ lib.optional fontconfigSupport pkgs.fontconfig
|
||||||
|
@ -70,14 +64,12 @@ stdenv.mkDerivation ((lib.optionalAttrs (buildScript != null) {
|
||||||
++ lib.optional udevSupport pkgs.udev
|
++ lib.optional udevSupport pkgs.udev
|
||||||
++ lib.optional vulkanSupport pkgs.vulkan-loader
|
++ lib.optional vulkanSupport pkgs.vulkan-loader
|
||||||
++ lib.optional sdlSupport pkgs.SDL2
|
++ lib.optional sdlSupport pkgs.SDL2
|
||||||
++ lib.optional faudioSupport pkgs.faudio
|
|
||||||
++ vkd3dArches
|
++ vkd3dArches
|
||||||
++ lib.optionals gstreamerSupport (with pkgs.gst_all_1;
|
++ lib.optionals gstreamerSupport (with pkgs.gst_all_1;
|
||||||
[ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-libav
|
[ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-libav
|
||||||
(gst-plugins-bad.override { enableZbar = false; }) ])
|
(gst-plugins-bad.override { enableZbar = false; }) ])
|
||||||
++ lib.optionals gtkSupport [ pkgs.gtk3 pkgs.glib ]
|
++ lib.optionals gtkSupport [ pkgs.gtk3 pkgs.glib ]
|
||||||
++ lib.optionals openclSupport [ pkgs.opencl-headers pkgs.ocl-icd ]
|
++ lib.optionals openclSupport [ pkgs.opencl-headers pkgs.ocl-icd ]
|
||||||
++ lib.optionals xmlSupport [ pkgs.libxml2 pkgs.libxslt ]
|
|
||||||
++ lib.optionals tlsSupport [ pkgs.openssl pkgs.gnutls ]
|
++ lib.optionals tlsSupport [ pkgs.openssl pkgs.gnutls ]
|
||||||
++ lib.optionals (openglSupport && !stdenv.isDarwin) [ pkgs.libGLU pkgs.libGL pkgs.mesa.osmesa pkgs.libdrm ]
|
++ lib.optionals (openglSupport && !stdenv.isDarwin) [ pkgs.libGLU pkgs.libGL pkgs.mesa.osmesa pkgs.libdrm ]
|
||||||
++ lib.optionals stdenv.isDarwin (with pkgs.buildPackages.darwin.apple_sdk.frameworks; [
|
++ lib.optionals stdenv.isDarwin (with pkgs.buildPackages.darwin.apple_sdk.frameworks; [
|
||||||
|
|
|
@ -9,9 +9,6 @@
|
||||||
{ lib, stdenv, callPackage,
|
{ lib, stdenv, callPackage,
|
||||||
wineRelease ? "stable",
|
wineRelease ? "stable",
|
||||||
wineBuild ? if stdenv.hostPlatform.system == "x86_64-linux" then "wineWow" else "wine32",
|
wineBuild ? if stdenv.hostPlatform.system == "x86_64-linux" then "wineWow" else "wine32",
|
||||||
pngSupport ? false,
|
|
||||||
jpegSupport ? false,
|
|
||||||
tiffSupport ? false,
|
|
||||||
gettextSupport ? false,
|
gettextSupport ? false,
|
||||||
fontconfigSupport ? false,
|
fontconfigSupport ? false,
|
||||||
alsaSupport ? false,
|
alsaSupport ? false,
|
||||||
|
@ -20,9 +17,7 @@
|
||||||
tlsSupport ? false,
|
tlsSupport ? false,
|
||||||
gstreamerSupport ? false,
|
gstreamerSupport ? false,
|
||||||
cupsSupport ? false,
|
cupsSupport ? false,
|
||||||
colorManagementSupport ? false,
|
|
||||||
dbusSupport ? false,
|
dbusSupport ? false,
|
||||||
mpg123Support ? false,
|
|
||||||
openalSupport ? false,
|
openalSupport ? false,
|
||||||
openclSupport ? false,
|
openclSupport ? false,
|
||||||
cairoSupport ? false,
|
cairoSupport ? false,
|
||||||
|
@ -33,16 +28,13 @@
|
||||||
pcapSupport ? false,
|
pcapSupport ? false,
|
||||||
v4lSupport ? false,
|
v4lSupport ? false,
|
||||||
saneSupport ? false,
|
saneSupport ? false,
|
||||||
gsmSupport ? false,
|
|
||||||
gphoto2Support ? false,
|
gphoto2Support ? false,
|
||||||
ldapSupport ? false,
|
ldapSupport ? false,
|
||||||
pulseaudioSupport ? false,
|
pulseaudioSupport ? false,
|
||||||
udevSupport ? false,
|
udevSupport ? false,
|
||||||
xineramaSupport ? false,
|
xineramaSupport ? false,
|
||||||
xmlSupport ? false,
|
|
||||||
vulkanSupport ? false,
|
vulkanSupport ? false,
|
||||||
sdlSupport ? false,
|
sdlSupport ? false,
|
||||||
faudioSupport ? false,
|
|
||||||
vkd3dSupport ? false,
|
vkd3dSupport ? false,
|
||||||
mingwSupport ? wineRelease != "stable",
|
mingwSupport ? wineRelease != "stable",
|
||||||
waylandSupport ? wineRelease == "wayland",
|
waylandSupport ? wineRelease == "wayland",
|
||||||
|
@ -53,13 +45,13 @@ let wine-build = build: release:
|
||||||
lib.getAttr build (callPackage ./packages.nix {
|
lib.getAttr build (callPackage ./packages.nix {
|
||||||
wineRelease = release;
|
wineRelease = release;
|
||||||
supportFlags = {
|
supportFlags = {
|
||||||
inherit pngSupport jpegSupport cupsSupport colorManagementSupport gettextSupport
|
inherit
|
||||||
dbusSupport mpg123Support openalSupport cairoSupport tiffSupport odbcSupport
|
cupsSupport gettextSupport dbusSupport openalSupport cairoSupport
|
||||||
netapiSupport cursesSupport vaSupport pcapSupport v4lSupport saneSupport
|
odbcSupport netapiSupport cursesSupport vaSupport pcapSupport
|
||||||
gsmSupport gphoto2Support ldapSupport fontconfigSupport alsaSupport
|
v4lSupport saneSupport gphoto2Support ldapSupport fontconfigSupport
|
||||||
pulseaudioSupport xineramaSupport gtkSupport openclSupport xmlSupport tlsSupport
|
alsaSupport pulseaudioSupport xineramaSupport gtkSupport openclSupport
|
||||||
openglSupport gstreamerSupport udevSupport vulkanSupport sdlSupport faudioSupport
|
tlsSupport openglSupport gstreamerSupport udevSupport vulkanSupport
|
||||||
vkd3dSupport mingwSupport waylandSupport embedInstallers;
|
sdlSupport vkd3dSupport mingwSupport waylandSupport embedInstallers;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,6 @@ rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
base = minimal.override {
|
base = minimal.override {
|
||||||
pngSupport = true;
|
|
||||||
jpegSupport = true;
|
|
||||||
tiffSupport = true;
|
|
||||||
gettextSupport = true;
|
gettextSupport = true;
|
||||||
fontconfigSupport = true;
|
fontconfigSupport = true;
|
||||||
alsaSupport = true;
|
alsaSupport = true;
|
||||||
|
@ -25,7 +22,6 @@ rec {
|
||||||
pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
|
pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
|
||||||
udevSupport = true;
|
udevSupport = true;
|
||||||
xineramaSupport = true;
|
xineramaSupport = true;
|
||||||
xmlSupport = true;
|
|
||||||
sdlSupport = true;
|
sdlSupport = true;
|
||||||
mingwSupport = true;
|
mingwSupport = true;
|
||||||
};
|
};
|
||||||
|
@ -33,8 +29,6 @@ rec {
|
||||||
full = base.override {
|
full = base.override {
|
||||||
gtkSupport = true;
|
gtkSupport = true;
|
||||||
gstreamerSupport = true;
|
gstreamerSupport = true;
|
||||||
colorManagementSupport = true;
|
|
||||||
mpg123Support = true;
|
|
||||||
openalSupport = true;
|
openalSupport = true;
|
||||||
openclSupport = true;
|
openclSupport = true;
|
||||||
odbcSupport = true;
|
odbcSupport = true;
|
||||||
|
@ -42,10 +36,8 @@ rec {
|
||||||
vaSupport = true;
|
vaSupport = true;
|
||||||
pcapSupport = true;
|
pcapSupport = true;
|
||||||
v4lSupport = true;
|
v4lSupport = true;
|
||||||
gsmSupport = true;
|
|
||||||
gphoto2Support = true;
|
gphoto2Support = true;
|
||||||
ldapSupport = true;
|
ldapSupport = true;
|
||||||
faudioSupport = true;
|
|
||||||
vkd3dSupport = true;
|
vkd3dSupport = true;
|
||||||
embedInstallers = true;
|
embedInstallers = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue