This is a problem that apparently is caused by a local
[patch](https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/compilers/nim/nixbuild.patch)
that the NixOS devs are applying to nim.
>From a high-level view, it seems that the patch is trying to call `getEnv`
>while trying to resolv
Maybe you should follow up in the [snap
repo](https://github.com/sirredbeard/nim_lang_snap), it seems that the
maintainer is now working for Suse.
Does the different style of path definition for `-L` makes any difference?
Backward and forward slash in the same command. I assume there is a `m.dll` in
`C:\msys64\mingw64\lib\m.dll`, right?
`-LC:/msys64/mingw64/lib` is the same as `-LC:\msys64\mingw64\lib`?
NVM I see that the problem is that the lib is in other path that is not been
included. `C:\msys64\mingw64\x86_64-w64-mingw32\lib`.