2016-04-12 17:52:05 +02:00
|
|
|
{ system, stdenv, stdenv_32bit, lib, pkgs, pkgsi686Linux, callPackage, callPackage_i686,
|
2016-04-12 18:15:45 +02:00
|
|
|
overrideCC, wrapCCMulti, gcc49,
|
2015-12-24 02:58:57 +01:00
|
|
|
pulseaudioSupport,
|
2015-04-21 18:00:59 +02:00
|
|
|
wineRelease ? "stable"
|
|
|
|
}:
|
|
|
|
|
2016-02-02 04:55:46 +01:00
|
|
|
let src = lib.getAttr wineRelease (callPackage ./sources.nix {});
|
|
|
|
in with src; {
|
2016-04-12 17:52:05 +02:00
|
|
|
wine32 = callPackage_i686 ./base.nix {
|
2015-08-20 19:40:12 +02:00
|
|
|
name = "wine-${version}";
|
2016-02-02 04:55:46 +01:00
|
|
|
inherit src version pulseaudioSupport;
|
2015-04-21 18:00:59 +02:00
|
|
|
pkgArches = [ pkgsi686Linux ];
|
2016-02-02 04:55:46 +01:00
|
|
|
geckos = [ gecko32 ];
|
|
|
|
monos = [ mono ];
|
2015-04-21 18:00:59 +02:00
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
2016-04-12 17:52:05 +02:00
|
|
|
wine64 = callPackage ./base.nix {
|
2015-04-21 18:00:59 +02:00
|
|
|
name = "wine64-${version}";
|
2016-04-12 17:52:05 +02:00
|
|
|
inherit src version pulseaudioSupport;
|
2016-04-12 18:15:45 +02:00
|
|
|
# FIXME: drop this when GCC is updated to >5.3.
|
|
|
|
# Corresponding bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69140
|
|
|
|
stdenv = overrideCC stdenv gcc49;
|
2015-04-21 18:00:59 +02:00
|
|
|
pkgArches = [ pkgs ];
|
2016-02-02 04:55:46 +01:00
|
|
|
geckos = [ gecko64 ];
|
|
|
|
monos = [ mono ];
|
2016-04-12 17:52:05 +02:00
|
|
|
configureFlags = [ "--enable-win64" ];
|
2015-04-21 18:00:59 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
2016-04-12 17:52:05 +02:00
|
|
|
wineWow = callPackage ./base.nix {
|
2015-08-20 19:40:12 +02:00
|
|
|
name = "wine-wow-${version}";
|
2016-04-12 17:52:05 +02:00
|
|
|
inherit src version pulseaudioSupport;
|
2016-04-12 18:15:45 +02:00
|
|
|
# FIXME: see above.
|
|
|
|
stdenv = overrideCC stdenv_32bit (wrapCCMulti gcc49);
|
2015-04-21 18:00:59 +02:00
|
|
|
pkgArches = [ pkgs pkgsi686Linux ];
|
2016-02-02 04:55:46 +01:00
|
|
|
geckos = [ gecko32 gecko64 ];
|
|
|
|
monos = [ mono ];
|
2015-04-21 18:00:59 +02:00
|
|
|
buildScript = ./builder-wow.sh;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|