3
0
Fork 0
forked from mirrors/nixpkgs

nixos/binfmt: use PE magic to detect Wine executables

Otherwise we break every Meson build because it creates native executables named foo.exe
This commit is contained in:
K900 2023-08-23 16:20:57 +03:00
parent ff194085eb
commit c6cf85b0d5

View file

@ -137,14 +137,8 @@ let
magicOrExtension = ''\x00asm'';
mask = ''\xff\xff\xff\xff'';
};
x86_64-windows = {
magicOrExtension = "exe";
recognitionType = "extension";
};
i686-windows = {
magicOrExtension = "exe";
recognitionType = "extension";
};
x86_64-windows.magicOrExtension = "MZ";
i686-windows.magicOrExtension = "MZ";
};
in {