2023-07-15 17:15:38 +00:00
|
|
|
{ stdenv_32bit, lib, pkgs, pkgsi686Linux, pkgsCross, callPackage, substituteAll, 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 ];
|
2023-07-15 17:15:38 +00:00
|
|
|
buildScript = substituteAll {
|
|
|
|
src = ./builder-wow.sh;
|
|
|
|
# pkgconfig has trouble picking the right architecture
|
|
|
|
pkgconfig64remove = lib.makeSearchPathOutput "dev" "lib/pkgconfig" [ pkgs.glib pkgs.gst_all_1.gstreamer ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2022-08-12 12:06:08 +00:00
|
|
|
mainProgram = "wine64";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
wineWow64 = callPackage ./base.nix {
|
|
|
|
pname = "wine-wow64";
|
|
|
|
inherit src version supportFlags patches moltenvk;
|
|
|
|
pkgArches = [ pkgs ];
|
|
|
|
mingwGccs = with pkgsCross; [ mingw32.buildPackages.gcc mingwW64.buildPackages.gcc ];
|
|
|
|
geckos = [ gecko64 ];
|
|
|
|
monos = [ mono ];
|
|
|
|
configureFlags = [ "--enable-archs=x86_64,i386" ];
|
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
mainProgram = "wine";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|