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

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

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

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