-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
43 lines (40 loc) · 1.09 KB
/
shell.nix
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
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
nativeBuildInputs = with pkgs; [ rustup cargo gcc ];
buildInputs = with pkgs; [
clang
rustfmt
clippy
just
kube3d
openssl
pkgconfig
python310Packages.ipython
protobuf
kustomize
kubectl
operator-sdk
postgresql
s3cmd
minio-client
argo
kubernetes-helm
grpcurl
sass
rust-analyzer
jq
python311Packages.mkdocs-material
python311Packages.mkdocs
ripgrep
];
# Certain Rust tools won't work without this
# This can also be fixed by using oxalica/rust-overlay and specifying the rust-src extension
# See https://discourse.nixos.org/t/rust-src-not-found-and-other-misadventures-of-developing-rust-on-nixos/11570/3?u=samuela. for more details.
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
# This is required to build hun-spell for cargo-spellchecker
LIBCLANG_PATH="${pkgs.llvmPackages.libclang.lib}/lib";
# TODO: use cargo bin path env variables instead of specific path.
shellHook = ''
export PATH=$PATH:~/.cargo/bin
'';
}