-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathdevenv.nix
More file actions
43 lines (37 loc) · 802 Bytes
/
devenv.nix
File metadata and controls
43 lines (37 loc) · 802 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
39
40
41
42
43
{ pkgs, ... }: {
languages.rust.enable = true;
languages.javascript = {
enable = true;
npm = {
enable = true;
install.enable = true;
};
};
packages = [
# keyring
pkgs.dbus
# coverage testing
pkgs.cargo-tarpaulin
# installers
pkgs.cargo-dist
];
git-hooks.hooks = {
rustfmt.enable = true;
clippy.enable = true;
# TODO: this should be done by devenv
clippy.settings.offline = false;
};
enterTest = ''
cargo test --all
'';
scripts.test-cli-integration.exec = ''
# Build the CLI for integration tests
cargo build --release
export PATH="$PWD/target/release:$PATH"
# Run CLI integration tests
bash tests/cli-integration.sh
'';
processes.docs.exec = ''
cd docs && npm run dev
'';
}