2022-02-21 08:47:16 +00:00
|
|
|
{ stdenv_32bit, lib, pkgs, pkgsi686Linux, pkgsCross, callPackage, moltenvk,
|
2020-04-24 23:36:52 +00:00
|
|
|
wineRelease ? "stable",
|
|
|
|
supportFlags
|
|
|
|
}:
|
|
|
|
|
2022-01-25 03:21:06 +00:00
|
|
|
let
|
|
|
|
src = lib.getAttr wineRelease (callPackage ./sources.nix {});
|
2022-02-21 08:47:16 +00:00
|
|
|
vkd3d = pkgs.callPackage ./vkd3d.nix { inherit moltenvk; };
|
|
|
|
vkd3d_i686 = pkgsi686Linux.callPackage ./vkd3d.nix { inherit moltenvk; };
|
2020-04-24 23:36:52 +00:00
|
|
|
in with src; {
|
|
|
|
wine32 = pkgsi686Linux.callPackage ./base.nix {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "wine";
|
2022-02-21 08:47:16 +00:00
|
|
|
inherit src version supportFlags patches moltenvk;
|
2020-04-24 23:36:52 +00:00
|
|
|
pkgArches = [ pkgsi686Linux ];
|
2022-01-25 03:21:06 +00:00
|
|
|
vkd3dArches = lib.optionals supportFlags.vkd3dSupport [ vkd3d_i686 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
geckos = [ gecko32 ];
|
2020-11-15 13:44:38 +00:00
|
|
|
mingwGccs = with pkgsCross; [ mingw32.buildPackages.gcc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
monos = [ mono ];
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
wine64 = callPackage ./base.nix {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "wine64";
|
2022-02-21 08:47:16 +00:00
|
|
|
inherit src version supportFlags patches moltenvk;
|
2020-04-24 23:36:52 +00:00
|
|
|
pkgArches = [ pkgs ];
|
2022-01-25 03:21:06 +00:00
|
|
|
vkd3dArches = lib.optionals supportFlags.vkd3dSupport [ vkd3d ];
|
2020-11-15 13:44:38 +00:00
|
|
|
mingwGccs = with pkgsCross; [ mingwW64.buildPackages.gcc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
geckos = [ gecko64 ];
|
|
|
|
monos = [ mono ];
|
|
|
|
configureFlags = [ "--enable-win64" ];
|
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
};
|
|
|
|
wineWow = callPackage ./base.nix {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "wine-wow";
|
2022-02-21 08:47:16 +00:00
|
|
|
inherit src version supportFlags patches moltenvk;
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv = stdenv_32bit;
|
|
|
|
pkgArches = [ pkgs pkgsi686Linux ];
|
2022-01-25 03:21:06 +00:00
|
|
|
vkd3dArches = lib.optionals supportFlags.vkd3dSupport [ vkd3d vkd3d_i686 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
geckos = [ gecko32 gecko64 ];
|
2020-11-15 13:44:38 +00:00
|
|
|
mingwGccs = with pkgsCross; [ mingw32.buildPackages.gcc mingwW64.buildPackages.gcc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
monos = [ mono ];
|
|
|
|
buildScript = ./builder-wow.sh;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|