ares/rust/shell.nix
2023-11-20 10:57:47 -05:00

24 lines
486 B
Nix

{ sources ? import ./nix/sources.nix,
pkgs ? import sources.nixpkgs {
overlays = [ (import "${sources.fenix}/overlay.nix") (import ./nix/overlay.nix) ];
}
}:
pkgs.mkShell {
LIBCLANG_PATH = "${pkgs.llvmPackages.libclang.lib}/lib";
packages = with pkgs; [
(fenix.stable.withComponents [
"cargo"
"clippy"
"rustc"
"rustfmt"
"rust-src"
])
cargo-watch
gdb
urcrypt
pkg-config
autoconf-archive
llvmPackages.clang
];
}