about summary refs log tree commit diff
path: root/shells/rust.nix
blob: fa81dd435d8da13c455111e9f2d88b847f2210ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ pkgs ? import ../. {} }:
with pkgs;

stdenv.mkDerivation {
  name = "rust-shell";
  buildInputs = [
    cargo clang clippy cargo-edit llvm pkg-config rust-analyzer rustc rustfmt
  ];

  buildCommand = ''
    printf "%s\n" $buildInputs > $out
  '';

  # For bindgen
  LIBCLANG_PATH = "${llvmPackages.libclang}/lib";
}