nixpkgs/pkgs/misc/emulators/wine/packages.nix

42 lines
1.3 KiB
Nix
Raw Normal View History

{ system, stdenv, stdenv_32bit, lib, pkgs, pkgsi686Linux, callPackage, callPackage_i686,
2016-04-12 16:15:45 +00:00
overrideCC, wrapCCMulti, gcc49,
2016-05-29 08:43:47 +00:00
wineRelease ? "stable",
supportFlags
}:
let src = lib.getAttr wineRelease (callPackage ./sources.nix {});
in with src; {
wine32 = callPackage_i686 ./base.nix {
name = "wine-${version}";
2016-05-29 08:43:47 +00:00
inherit src version supportFlags;
pkgArches = [ pkgsi686Linux ];
geckos = [ gecko32 ];
monos = [ mono ];
platforms = [ "i686-linux" "x86_64-linux" ];
};
wine64 = callPackage ./base.nix {
name = "wine64-${version}";
2016-05-29 08:43:47 +00:00
inherit src version supportFlags;
2016-04-12 16:15:45 +00: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;
pkgArches = [ pkgs ];
geckos = [ gecko64 ];
monos = [ mono ];
configureFlags = [ "--enable-win64" ];
platforms = [ "x86_64-linux" ];
};
wineWow = callPackage ./base.nix {
name = "wine-wow-${version}";
2016-05-29 08:43:47 +00:00
inherit src version supportFlags;
2016-04-12 16:15:45 +00:00
# FIXME: see above.
stdenv = overrideCC stdenv_32bit (wrapCCMulti gcc49);
pkgArches = [ pkgs pkgsi686Linux ];
geckos = [ gecko32 gecko64 ];
monos = [ mono ];
buildScript = ./builder-wow.sh;
platforms = [ "x86_64-linux" ];
};
}