blob: e36c70a7060509860e2de1633c444d73213bbeaf (
plain) (
blame)
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
34
35
36
37
38
39
40
41
42
43
|
# with import <nixpkgs> {};
# let src = fetchFromGitHub {
# owner = "mozilla";
# repo = "nixpkgs-mozilla";
# rev = "9f35c4b09fd44a77227e79ff0c1b4b6a69dff533";
# sha256 = "18h0nvh55b5an4gmlgfbvwbyqj91bklf1zymis6lbdh75571qaz0";
# };
# in
# with import "${src.out}/rust-overlay.nix" pkgs pkgs;
# stdenv.mkDerivation {
# name = "rust-env";
# buildInputs = [
# # Note: to use use stable, just replace `nightly` with `stable`
# latest.rustChannels.nightly.rust
#
# # Add some extra dependencies from `pkgs`
# pkgconfig openssl
# ];
#
# # Set Environment Variables
# RUST_BACKTRACE = 1;
# }
with import <nixpkgs> {};
mkShell rec {
buildInputs = [
# Build tools
rustup
pkg-config
# Deps
libclang
# Dev
nodePackages.nodemon
rust-analyzer
];
nativeBuildInputs = [ clang ];
LIBCLANG_PATH = "${libclang.lib}/lib";
RUST_SRC_PATH = rust.packages.stable.rustPlatform.rustLibSrc;
LD_LIBRARY_PATH = lib.makeLibraryPath (buildInputs ++ nativeBuildInputs);
}
|