Skip to content

Commit 6583d69

Browse files
author
m0ssc0de
committed
nix
1 parent 681f7c3 commit 6583d69

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

shell.nix

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)