-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathshell.nix
More file actions
37 lines (32 loc) · 746 Bytes
/
shell.nix
File metadata and controls
37 lines (32 loc) · 746 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
let
self = import ./default.nix { };
inherit (self.passthru) pkgs;
in
pkgs.mkShell {
packages = [
pkgs.lon
pkgs.cargo-release
pkgs.cargo-machete
pkgs.cargo-edit
pkgs.cargo-bloat
pkgs.lixPackageSets.latest.nix-eval-jobs
# Convenience for test fixtures in nix/tests.
pkgs.openssl
# Needed for `cargo test` in rust/tool. We also need
# TEST_SYSTEMD below for that.
pkgs.sbsigntool
];
inputsFrom = [
self.packages.lzbt
self.packages.stub
self.docs.html
];
shellHook = ''
${self.checks.pre-commit.shellHook}
'';
env = {
# For rust-analyzer support
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
TEST_SYSTEMD = pkgs.systemd;
};
}