14 lines
332 B
Nix
14 lines
332 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
with pkgs;
|
|
mkShell {
|
|
buildInputs = [
|
|
pkgsCross.mingwW64.buildPackages.gcc
|
|
pkgsCross.mingwW64.buildPackages.glibc
|
|
rustup
|
|
libpthread-stubs
|
|
pkg-config
|
|
openssl
|
|
];
|
|
CARGO_TARGET_X86_64_PC_WINDOWS_GNU_RUSTFLAGS = "-L native=${pkgs.pkgsCross.mingwW64.windows.pthreads}/lib";
|
|
|
|
}
|