forked from shanesveller/nix-beam-flakes
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.justfile
28 lines (25 loc) · 846 Bytes
/
.justfile
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
default: show
add-elixir version:
nix run ./dev#add-elixir-version {{ version }}
add-erlang version:
nix run ./dev#add-otp-version {{ version }}
check:
nix flake check --all-systems
nix flake check ./dev --all-systems
doc:
nix build .#optionsDoc
cat ./result > docs/options.md
list-all-elixir:
nix run ./dev#list-all-elixir
list-all-erlang:
nix run ./dev#list-all-otp
show:
nix flake show
target_ref := `nix flake metadata --json github:shanesveller/nix-flake-lock-targets | jq -r '.locks.nodes.unstable.locked.rev'`
update_args := "--commit-lock-file --override-input nixpkgs github:nixos/nixpkgs/" + target_ref
update: update-inputs
update-inputs:
nix flake update {{ update_args }} --flake .
nix flake update {{ update_args }} --flake ./dev
watch-docs:
nix develop .#docs --command mdbook serve --open