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 {});
|
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 ];
|
|
|
|
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 ];
|
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" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
mainProgram = "wine64";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
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 ];
|
|
|
|
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" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
mainProgram = "wine64";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|