{ stdenv, callPackage, windows }:

stdenv.mkDerivation {
  inherit (callPackage ./common.nix {}) name src;
  buildInputs = [ windows.mingw_w64_headers ];
  dontStrip = true;
}

{ stdenv, callPackage, windows }:

stdenv.mkDerivation {
  inherit (callPackage ./common.nix {}) name src;
  buildInputs = [ windows.mingw_w64_headers ];
  dontStrip = true;
  hardeningDisable = [ "stackprotector" "fortify" ];
}

Disable stack hardening of the runtime
mingw-w64: Disable stack hardening of the runtime

Do this because it is built with the static stage
