msys2: export wine-msys2

This commit is contained in:
Sebastien Bourdeauducq 2023-04-24 16:25:50 +08:00
parent 41e14e4997
commit cc8deef208
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,12 @@ let
</fontconfig>
EOF
'';
wine-msys2 = pkgs.writeShellScriptBin "wine-msys2"
''
export WINEDEBUG=-all
export WINEPATH=Z:${msys2-env}/mingw64/bin
exec ${pkgs.wineWowPackages.stable}/bin/wine64 cmd
'';
wine-msys2-build = pkgs.writeShellScriptBin "wine-msys2-build"
''
export HOME=`mktemp -d`
@ -25,6 +31,7 @@ let
exec ${pkgs.wineWowPackages.stable}/bin/wine64 $@
'';
in {
inherit wine-msys2;
makeMsys2Package = { name, version, src, depends, prepare ? "" }: pkgs.stdenvNoCC.mkDerivation {
pname = "${name}-msys2-pkg";
inherit version;