git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #26152 from abbradar/wine-reorder

wine: reorganize packages

commit0011f9065a1ad1da4db67bec8d535d91b0a78fba authorNikolay Amiantov <ab@fmap.me> dateSun 4 Jun 2017, 00:58 (9 years ago) parent0dc5473e7530e6
5 files changed+85−52
lib/meta.nix+5 pkgs/applications/audio/airwave/default.nix+3−2 pkgs/misc/emulators/wine/base.nix+7−3 pkgs/top-level/aliases.nix+18−5 pkgs/top-level/all-packages.nix+52−42
lib/meta.nix+5
@@ -17,6 +17,11 @@ rec {
1717 drv // { meta = (drv.meta or {}) // newAttrs; };
1818
1919
20+ /* Disable Hydra builds of given derivation.
21+ */
22+ dontDistribute = drv: addMetaAttrs { hydraPlatforms = []; } drv;
23+
24+
2025 /* Change the symbolic name of a package for presentation purposes
2126 (i.e., so that nix-env users can tell them apart).
2227 */
pkgs/applications/audio/airwave/default.nix+3−2
@@ -1,5 +1,5 @@
11{ stdenv, cmake, fetchFromGitHub, file, gcc_multi, libX11, makeWrapper
2−, overrideCC, qt5, requireFile, unzip, wineStable
2+, overrideCC, qt5, requireFile, unzip, wine
33}:
44
55let
@@ -26,7 +26,8 @@ let
2626 installPhase = "cp -r . $out";
2727 };
2828
29− wine-wow64 = wineStable.override {
29+ wine-wow64 = wine.override {
30+ wineRelease = "stable";
3031 wineBuild = "wineWow";
3132 };
3233
pkgs/misc/emulators/wine/base.nix+7−3
@@ -91,9 +91,13 @@ stdenv.mkDerivation ((lib.optionalAttrs (! isNull buildScript) {
9191 ((map (links "share/wine/gecko") geckos)
9292 ++ (map (links "share/wine/mono") monos))}
9393 '' + lib.optionalString supportFlags.gstreamerSupport ''
94− wrapProgram "$out/bin/wine" \
95− --argv0 "" \
96− --prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0"
94+ for i in wine wine64; do
95+ if [ -e "$out/bin/$i" ]; then
96+ wrapProgram "$out/bin/$i" \
97+ --argv0 "" \
98+ --prefix GST_PLUGIN_SYSTEM_PATH_1_0 ":" "$GST_PLUGIN_SYSTEM_PATH_1_0"
99+ fi
100+ done
97101 '';
98102
99103 enableParallelBuilding = true;
pkgs/top-level/aliases.nix+18−5
@@ -5,18 +5,25 @@ with self;
55let
66 # Removing recurseForDerivation prevents derivations of aliased attribute
77 # set to appear while listing all the packages available.
8− removeRecurseForDerivations = _n: alias: with lib;
8+ removeRecurseForDerivations = alias: with lib;
99 if alias.recurseForDerivations or false then
1010 removeAttrs alias ["recurseForDerivations"]
1111 else alias;
1212
13− doNotDisplayTwice = aliases:
14− lib.mapAttrs removeRecurseForDerivations aliases;
13+ # Disabling distribution prevents top-level aliases for non-recursed package
14+ # sets from building on Hydra.
15+ removeDistribute = alias: with lib;
16+ if isDerivation alias then
17+ dontDistribute alias
18+ else alias;
19+
20+ mapAliases = aliases:
21+ lib.mapAttrs (n: alias: removeDistribute (removeRecurseForDerivations alias)) aliases;
1522in
1623
1724 ### Deprecated aliases - for backward compatibility
1825
19−doNotDisplayTwice rec {
26+mapAliases (rec {
2027 accounts-qt = libsForQt5.accounts-qt; # added 2015-12-19
2128 adobeReader = adobe-reader;
2229 aircrackng = aircrack-ng; # added 2016-01-14
@@ -141,6 +148,12 @@ doNotDisplayTwice rec {
141148 xlibs = xorg; # added 2015-09
142149 youtubeDL = youtube-dl; # added 2014-10-26
143150
151+ # added 2017-05-27
152+ wineMinimal = winePackages.minimal;
153+ wineFull = winePackages.full;
154+ wineStable = winePackages.stable;
155+ wineUnstable = winePackages.unstable;
156+
144157 inherit (ocaml-ng) # added 2016-09-14
145158 ocamlPackages_3_10_0 ocamlPackages_3_11_2 ocamlPackages_3_12_1
146159 ocamlPackages_4_00_1 ocamlPackages_4_01_0 ocamlPackages_4_02
@@ -156,4 +169,4 @@ doNotDisplayTwice rec {
156169 ocaml_4_02 = ocamlPackages_4_02.ocaml;
157170 ocaml_4_03 = ocamlPackages_4_03.ocaml;
158171 ocaml = ocamlPackages.ocaml;
159−})
172+}))
pkgs/top-level/all-packages.nix+52−42
@@ -18718,49 +18718,59 @@ with pkgs;
1871818718 pythonPackages = python3Packages;
1871918719 };
1872018720
18721− wineMinimal = callPackage ../misc/emulators/wine {
18722− wineRelease = config.wine.release or "stable";
18723− wineBuild = config.wine.build or "wine32";
18724− };
18725− wine = lowPrio (self.wineMinimal.override {
18726− pngSupport = true;
18727− jpegSupport = true;
18728− tiffSupport = true;
18729− gettextSupport = true;
18730− fontconfigSupport = true;
18731− alsaSupport = true;
18732− openglSupport = true;
18733− tlsSupport = true;
18734− cupsSupport = true;
18735− colorManagementSupport = true;
18736− dbusSupport = true;
18737− mpg123Support = true;
18738− openalSupport = true;
18739− cairoSupport = true;
18740− cursesSupport = true;
18741− pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
18742− xineramaSupport = true;
18743− xmlSupport = true;
18744− });
18745− wineFull = lowPrio (self.wine.override {
18746− gtkSupport = true;
18747− gstreamerSupport = true;
18748− openclSupport = true;
18749− odbcSupport = true;
18750− netapiSupport = true;
18751− vaSupport = true;
18752− pcapSupport = true;
18753− v4lSupport = true;
18754− saneSupport = true;
18755− gsmSupport = true;
18756− gphoto2Support = true;
18757− ldapSupport = true;
18758− pulseaudioSupport = true;
18759− udevSupport = true;
18721+ winePackages = rec {
18722+ minimal = callPackage ../misc/emulators/wine {
18723+ wineRelease = config.wine.release or "stable";
18724+ wineBuild = config.wine.build or "wine32";
18725+ };
18726+
18727+ base = minimal.override {
18728+ pngSupport = true;
18729+ jpegSupport = true;
18730+ tiffSupport = true;
18731+ gettextSupport = true;
18732+ fontconfigSupport = true;
18733+ alsaSupport = true;
18734+ openglSupport = true;
18735+ tlsSupport = true;
18736+ cupsSupport = true;
18737+ dbusSupport = true;
18738+ cairoSupport = true;
18739+ cursesSupport = true;
18740+ saneSupport = true;
18741+ pulseaudioSupport = config.pulseaudio or stdenv.isLinux;
18742+ udevSupport = true;
18743+ xineramaSupport = true;
18744+ xmlSupport = true;
18745+ };
18746+
18747+ full = base.override {
18748+ gtkSupport = true;
18749+ gstreamerSupport = true;
18750+ colorManagementSupport = true;
18751+ mpg123Support = true;
18752+ openalSupport = true;
18753+ openclSupport = true;
18754+ odbcSupport = true;
18755+ netapiSupport = true;
18756+ vaSupport = true;
18757+ pcapSupport = true;
18758+ v4lSupport = true;
18759+ gsmSupport = true;
18760+ gphoto2Support = true;
18761+ ldapSupport = true;
18762+ };
18763+
18764+ stable = base.override { wineRelease = "stable"; };
18765+ unstable = base.override { wineRelease = "unstable"; };
18766+ staging = base.override { wineRelease = "staging"; };
18767+ };
18768+
18769+ wine = winePackages.base;
18770+
18771+ wineStaging = lowPrio (winePackages.full.override {
18772+ wineRelease = "staging";
1876018773 });
18761− wineStable = self.wine.override { wineRelease = "stable"; };
18762− wineUnstable = lowPrio (self.wine.override { wineRelease = "unstable"; });
18763− wineStaging = lowPrio (self.wine.override { wineRelease = "staging"; });
1876418774
1876518775 winetricks = callPackage ../misc/emulators/wine/winetricks.nix {
1876618776 inherit (gnome2) zenity;