-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtasks.nix
49 lines (49 loc) · 941 Bytes
/
tasks.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
44
45
46
47
48
49
{
fmt.exec = ''
taplo fmt *.tomil
nixfmt *.nix --width=100
biome format . --write
cargo fmt --all -- --config-path=rustfmt.toml
'';
lint.exec = ''
taplo lint *.toml
biome lint . --write
cargo clippy --all-targets --all-features -- -A clippy::pedantic
deadnix --no-lambda-pattern-names && statix check .
'';
spellcheck.exec = ''
typos
'';
precommit.exec = ''
fmt
lint
spellcheck
build-all
'';
build-crane.exec = ''
nix build .#launcher --accept-flake-config
'';
ucode.exec = ''
nix run .#ucode -- "$@"
'';
# options:
# $WORKSPACE
build.exec = ''
cargo build --release "$@"
'';
build-all.exec = ''
cargo build --release --all
'';
# options:
# $WORKSPACE
dev.exec = ''
cargo run --package "$@"
'';
rustdoc.exec = ''
cargo rustdoc -- --default-theme='ayu'
'';
clean.exec = ''
rm -rf build
rm -rf target
'';
}