blob: 8bc6538bc4e1a91dc7c32af09c8bb01207de07cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ pkgs ? import ../. {} }: pkgs.callPackage (
{ stdenv, cargo, cargo-deny, cargo-edit, clang, clippy, llvmPackages, pkg-config
, rust-analyzer, rustPlatform, rustc, rustfmt,
}:
stdenv.mkDerivation {
name = "rust-shell";
nativeBuildInputs = [
cargo cargo-deny cargo-edit clang clippy llvmPackages.llvm pkg-config
rust-analyzer rustPlatform.cargoBuildHook rustc rustfmt
];
buildCommand = ''
env > $out
'';
# For bindgen
LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
}
) { }
|