wine: reorganize packages

Move most of wine configurations to winePackages which is not built on Hydra.
Leave two top-level packages:

wine: stable release with an "office" configuration;
wineStaging: staging release with a "full" configuration.
This commit is contained in:
Nikolay Amiantov 2017-05-27 14:12:36 +03:00
parent 2d0a7c4eee
commit e7530e6a5a
4 changed files with 67 additions and 46 deletions

View File

@ -1,5 +1,5 @@
{ stdenv, cmake, fetchFromGitHub, file, gcc_multi, libX11, makeWrapper { stdenv, cmake, fetchFromGitHub, file, gcc_multi, libX11, makeWrapper
, overrideCC, qt5, requireFile, unzip, wineStable , overrideCC, qt5, requireFile, unzip, wine
}: }:
let let
@ -26,7 +26,8 @@ let
installPhase = "cp -r . $out"; installPhase = "cp -r . $out";
}; };
wine-wow64 = wineStable.override { wine-wow64 = wine.override {
wineRelease = "stable";
wineBuild = "wineWow"; wineBuild = "wineWow";
}; };

View File

@ -91,9 +91,13 @@ stdenv.mkDerivation ((lib.optionalAttrs (! isNull buildScript) {
((map (links "share/wine/gecko") geckos) ((map (links "share/wine/gecko") geckos)
++ (map (links "share/wine/mono") monos))} ++ (map (links "share/wine/mono") monos))}
'' + lib.optionalString supportFlags.gstreamerSupport '' '' + lib.optionalString supportFlags.gstreamerSupport ''
wrapProgram "$out/bin/wine" \ for i in wine wine64; do
if [ -e "$out/bin/$i" ]; then
wrapProgram "$out/bin/$i" \
--argv0 "" \ --argv0 "" \
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0" --prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0"
fi
done
''; '';
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -148,6 +148,12 @@ mapAliases (rec {
xlibs = xorg; # added 2015-09 xlibs = xorg; # added 2015-09
youtubeDL = youtube-dl; # added 2014-10-26 youtubeDL = youtube-dl; # added 2014-10-26
# added 2017-05-27
wineMinimal = winePackages.minimal;
wineFull = winePackages.full;
wineStable = winePackages.stable;
wineUnstable = winePackages.unstable;
inherit (ocaml-ng) # added 2016-09-14 inherit (ocaml-ng) # added 2016-09-14
ocamlPackages_3_10_0 ocamlPackages_3_11_2 ocamlPackages_3_12_1 ocamlPackages_3_10_0 ocamlPackages_3_11_2 ocamlPackages_3_12_1
ocamlPackages_4_00_1 ocamlPackages_4_01_0 ocamlPackages_4_02 ocamlPackages_4_00_1 ocamlPackages_4_01_0 ocamlPackages_4_02

View File

@ -18640,11 +18640,13 @@ with pkgs;
pythonPackages = python3Packages; pythonPackages = python3Packages;
}; };
wineMinimal = callPackage ../misc/emulators/wine { winePackages = rec {
minimal = callPackage ../misc/emulators/wine {
wineRelease = config.wine.release or "stable"; wineRelease = config.wine.release or "stable";
wineBuild = config.wine.build or "wine32"; wineBuild = config.wine.build or "wine32";
}; };
wine = lowPrio (self.wineMinimal.override {
base = minimal.override {
pngSupport = true; pngSupport = true;
jpegSupport = true; jpegSupport = true;
tiffSupport = true; tiffSupport = true;
@ -18654,35 +18656,43 @@ with pkgs;
openglSupport = true; openglSupport = true;
tlsSupport = true; tlsSupport = true;
cupsSupport = true; cupsSupport = true;
colorManagementSupport = true;
dbusSupport = true; dbusSupport = true;
mpg123Support = true;
openalSupport = true;
cairoSupport = true; cairoSupport = true;
cursesSupport = true; cursesSupport = true;
saneSupport = true;
pulseaudioSupport = config.pulseaudio or stdenv.isLinux; pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
udevSupport = true;
xineramaSupport = true; xineramaSupport = true;
xmlSupport = true; xmlSupport = true;
}); };
wineFull = lowPrio (self.wine.override {
full = base.override {
gtkSupport = true; gtkSupport = true;
gstreamerSupport = true; gstreamerSupport = true;
colorManagementSupport = true;
mpg123Support = true;
openalSupport = true;
openclSupport = true; openclSupport = true;
odbcSupport = true; odbcSupport = true;
netapiSupport = true; netapiSupport = true;
vaSupport = true; vaSupport = true;
pcapSupport = true; pcapSupport = true;
v4lSupport = true; v4lSupport = true;
saneSupport = true;
gsmSupport = true; gsmSupport = true;
gphoto2Support = true; gphoto2Support = true;
ldapSupport = true; ldapSupport = true;
pulseaudioSupport = true; };
udevSupport = true;
stable = base.override { wineRelease = "stable"; };
unstable = base.override { wineRelease = "unstable"; };
staging = base.override { wineRelease = "staging"; };
};
wine = winePackages.base;
wineStaging = lowPrio (winePackages.full.override {
wineRelease = "staging";
}); });
wineStable = self.wine.override { wineRelease = "stable"; };
wineUnstable = lowPrio (self.wine.override { wineRelease = "unstable"; });
wineStaging = lowPrio (self.wine.override { wineRelease = "staging"; });
winetricks = callPackage ../misc/emulators/wine/winetricks.nix { winetricks = callPackage ../misc/emulators/wine/winetricks.nix {
inherit (gnome2) zenity; inherit (gnome2) zenity;