2020-11-15 13:44:38 +00:00
|
|
|
{ stdenv_32bit, lib, pkgs, pkgsi686Linux, pkgsCross, callPackage,
|
2020-04-24 23:36:52 +00:00
|
|
|
wineRelease ? "stable",
|
|
|
|
supportFlags
|
|
|
|
}:
|
|
|
|
|
|
|
|
let src = lib.getAttr wineRelease (callPackage ./sources.nix {});
|
|
|
|
in with src; {
|
|
|
|
wine32 = pkgsi686Linux.callPackage ./base.nix {
|
|
|
|
name = "wine-${version}";
|
|
|
|
inherit src version supportFlags;
|
|
|
|
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 {
|
|
|
|
name = "wine64-${version}";
|
|
|
|
inherit src version supportFlags;
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
wineWow = callPackage ./base.nix {
|
|
|
|
name = "wine-wow-${version}";
|
|
|
|
inherit src version supportFlags;
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|