Commit c6cf85b0 authored by K900's avatar K900
Browse files

nixos/binfmt: use PE magic to detect Wine executables

Otherwise we break every Meson build because it creates native executables named foo.exe
parent ff194085
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -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 {