Created
April 24, 2023 15:38
-
-
Save s1341/25ce6e4e8a16b5da219b1da760d24a0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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