We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 681f7c3 commit 6583d69Copy full SHA for 6583d69
shell.nix
@@ -0,0 +1,23 @@
1
+let
2
+ moz_overlay = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
3
+ pkgs = import <nixpkgs> { overlays = [ moz_overlay ]; };
4
+ channel = pkgs.rustChannelOf {
5
+ channel = "nightly";
6
+ };
7
+ rust = (channel.rust.override {
8
+ targets = [ "wasm32-unknown-unknown" ];
9
+ });
10
+in
11
+ with pkgs;
12
+ stdenv.mkDerivation {
13
+ name = "rust-dev-env";
14
+ buildInputs = [
15
+ rust
16
+ llvmPackages.libclang
17
+ llvmPackages.libcxxClang
18
+ clang
19
+ pkg-config openssl
20
+ ];
21
+ LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
22
+ BINDGEN_EXTRA_CLANG_ARGS = "-isystem ${llvmPackages.libclang.lib}/lib/clang/${lib.getVersion clang}/include";
23
+}
0 commit comments