Skip to content

Instantly share code, notes, and snippets.

@s1341
Created April 24, 2023 15:38
Show Gist options
  • Save s1341/25ce6e4e8a16b5da219b1da760d24a0b to your computer and use it in GitHub Desktop.
Save s1341/25ce6e4e8a16b5da219b1da760d24a0b to your computer and use it in GitHub Desktop.
with import <nixpkgs> {
crossSystem = {
config = "x86_64-w64-mingw32";
# libc = "msvcrt";
# useLLVM = true;
};
overlays = [
(import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))
];
};
mkShell {
nativeBuildInputs = [
((buildPackages.rustChannelOf {
date = "2023-04-23";
channel = "nightly";
})
.rust
.override {
targets = ["x86_64-pc-windows-gnu"];
extensions = [
"rust-src"
"rustc-dev"
"cargo"
"rust-std"
];
})
buildPackages.pkg-config
buildPackages.lzma
];
buildInputs = [
windows.pthreads
windows.mingw_w64_pthreads
openssl
lzma
xz
zlib
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment