forked from polkadot-evm/frontier
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathshell.nix
More file actions
33 lines (32 loc) · 967 Bytes
/
shell.nix
File metadata and controls
33 lines (32 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
let
mozillaOverlay =
import (builtins.fetchGit {
url = "https://github.com/mozilla/nixpkgs-mozilla.git";
rev = "2292d4b35aa854e312ad2e95c4bb5c293656f21a";
});
nixpkgs = import <nixpkgs> { overlays = [ mozillaOverlay ]; };
rust-stable = with nixpkgs; ((rustChannelOf { date = "2025-07-01"; channel = "nightly"; }).rust.override {
extensions = [ "rust-src" ];
targets = [ "wasm32-unknown-unknown" ];
});
in
with nixpkgs; pkgs.mkShell {
nativeBuildInputs = [
rust-stable
];
buildInputs = [
clang
rocksdb
pkg-config
openssl.dev
nodejs
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
RUST_SRC_PATH = "${rust-stable}/lib/rustlib/src/rust/src";
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
PROTOC = "${protobuf}/bin/protoc";
ROCKSDB_LIB_DIR = "${rocksdb}/lib";
CFLAGS = "-Wno-error=int-conversion";
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
}