Files
rust-overlay/examples/cross-mingw/shell.nix

27 lines
574 B
Nix
Raw Normal View History

# See docs/cross_compilation.md for details.
(import <nixpkgs> {
crossSystem = {
config = "x86_64-w64-mingw32";
};
overlays = [ (import ../..) ];
2024-06-26 02:34:42 -04:00
}).callPackage
(
{
mkShell,
stdenv,
rust-bin,
windows,
wine64,
}:
mkShell {
nativeBuildInputs = [ rust-bin.stable.latest.minimal ];
2024-06-26 02:34:42 -04:00
depsBuildBuild = [ wine64 ];
buildInputs = [ windows.pthreads ];
2024-06-26 02:34:42 -04:00
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER = "${stdenv.cc.targetPrefix}cc";
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER = "wine64";
}
)
{ }