-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathshell.nix
More file actions
37 lines (34 loc) · 956 Bytes
/
shell.nix
File metadata and controls
37 lines (34 loc) · 956 Bytes
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
{
pkgs ? import <nixpkgs> { },
}:
let
unstable = import <nixos-unstable> { };
in
pkgs.mkShell {
nativeBuildInputs = [
unstable.cargo
unstable.clippy
unstable.rustc
unstable.rustfmt
pkgs.cargo-expand # Subcommand to show result of macro expansion
#pkgs.cargo-shear # Detect and remove unused dependencies from Cargo.toml
#pkgs.cargo-ndk # Cargo extension for building Android NDK projects
#pkgs.cargo-bloat # Tool and Cargo subcommand that helps you find out what takes most of the space in your executable
#cargo-audit # Audit Cargo.lock files for crates with security vulnerabilities
# add some Python packages
(
let
my_py_pkgs =
p: with p; [
mkdocs
mkdocs-material
pymdown-extensions
];
in
unstable.python3.withPackages my_py_pkgs
)
];
buildInputs = [
pkgs.entr # optional; used by `make docs-serve`
];
}