Yes, this is possible but not perfect. I am new to wine so still have much to learn but I was able to get a couple windows apps running.
To reproduce, I followed the NixOS setup found as a link in the Asahi Linux docs. My understanding is that Wine does not run on arm64, so I added
Code: Select all
boot.binfmt.emulatedSystems = ["x86_64-linux"];
Then, I used nix-build to build wineWowPackages.waylandFull for system x86_64-linux. Hope this inspires more Apple Silicon users!
Running wine directly from the nix-store where Wow installed works well. A quick test of "wine notepad" is successful. Running putty (64bit) works but putty (32bit) fails with the same kind of error I get when trying to run Acrobat DC:
Code: Select all
002c:err:virtual:virtual_map_section mapping 0x1670000 1000 0 failed
002c:err:wineboot:create_user_shared_data cannot map __wine_user_shared_data
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0084:fixme:wineusb:query_id Unhandled ID query type 0x5.
0084:fixme:wineusb:query_id Unhandled ID query type 0x5.
0084:fixme:wineusb:query_id Unhandled ID query type 0x5.
0108:err:environ:init_peb starting L"Z:\\home\\user\\Documents\\AcroRdrDCx642400220759_en_US.exe" in experimental wow64 mode
0108:err:module:relocate_ntdll ntdll could not be mapped at preferred address (0x150000), expect trouble
0108:err:seh:signal_init_process failed to allocate %fs selector
In order to avoid the need for aliasing, I am going to use the x86_64 nixos package channel in configuration.nix