You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
505 B
19 lines
505 B
# See docs/cross_compilation.md for details.
|
|
(import <nixpkgs> {
|
|
crossSystem = {
|
|
config = "x86_64-w64-mingw32";
|
|
};
|
|
overlays = [ (import ../..) ];
|
|
}).callPackage (
|
|
{ mkShell, stdenv, rust-bin, windows, wine64 }:
|
|
mkShell {
|
|
nativeBuildInputs = [
|
|
rust-bin.stable.latest.minimal
|
|
];
|
|
|
|
depsBuildBuild = [ wine64 ];
|
|
buildInputs = [ windows.pthreads ];
|
|
|
|
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_LINKER = "${stdenv.cc.targetPrefix}cc";
|
|
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUNNER = "wine64";
|
|
}) {}
|
|
|