feat: add justfile to make nix run commands easier to run
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
018a5aee9e
commit
9e2fb19146
2 changed files with 25 additions and 1 deletions
24
justfile
Normal file
24
justfile
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
default:
|
||||||
|
@just --list
|
||||||
|
|
||||||
|
docs args:
|
||||||
|
nix run "$FLAKE"#gen-docs
|
||||||
|
|
||||||
|
genflake:
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Get changes from inputs/default.nix
|
||||||
|
nix run "$FLAKE"#genflake "$FLAKE"/flake.nix &&
|
||||||
|
# Evaluate `follows` from new flake.lock
|
||||||
|
nix run "$FLAKE"#genflake "$FLAKE"/flake.nix &&
|
||||||
|
# Make sure everything is right
|
||||||
|
nix run "$FLAKE"#genflake "$FLAKE"/flake.nix
|
||||||
|
|
||||||
|
alejandra -q "$FLAKE"/flake.nix
|
||||||
|
|
||||||
|
[positional-arguments]
|
||||||
|
pin args:
|
||||||
|
nix run "$FLAKE"#pin-inputs -- "$@"
|
||||||
|
|
||||||
|
[positional-arguments]
|
||||||
|
update args:
|
||||||
|
nix run "$FLAKE"#update-sources -- "$@"
|
|
@ -48,7 +48,7 @@ in {
|
||||||
undollar
|
undollar
|
||||||
;
|
;
|
||||||
|
|
||||||
inherit (pkgs) alejandra;
|
inherit (pkgs) alejandra just;
|
||||||
|
|
||||||
# Archiving
|
# Archiving
|
||||||
inherit
|
inherit
|
||||||
|
|
Loading…
Add table
Reference in a new issue