-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrust.nix
More file actions
38 lines (34 loc) · 895 Bytes
/
rust.nix
File metadata and controls
38 lines (34 loc) · 895 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
38
{
flake,
system,
pkgs,
...
}:
let
craneLib = flake.lib.mkCraneLib { inherit pkgs system; };
in
craneLib.devShell {
inputsFrom = [
flake.devShells.${system}.default
]
# Inherit inputs from rust-workspace on the platforms it's available.
++ (pkgs.lib.lists.optionals
(pkgs.lib.meta.availableOn pkgs.stdenv.hostPlatform flake.packages.${system}.rust-workspace)
(
[
flake.packages.${system}.rust-workspace
]
++ (builtins.attrValues flake.packages.${system}.rust-workspace.passthru.tests)
)
);
# Additional dev-shell environment variables can be set directly
# MY_CUSTOM_DEVELOPMENT_VAR = "something else";
# Extra inputs can be added here; cargo and rustc are provided by default.
packages = [
pkgs.cargo-machete
pkgs.gnuplot
];
RUST_LOG = "flt=trace,flt_lib=trace"
# + "iroh_docs=debug,iroh_blobs=debug"
;
}