Skip to content

Commit

Permalink
add justfile with main commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mwr committed Nov 3, 2023
1 parent 6733fe2 commit 6289b7f
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
use flake --impure
use flake . --impure
30 changes: 30 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name := "titanium"

set positional-arguments

default:
@just --list --unsorted

# build rooter
build:
nix build ".#rooter"

# build rooter dev version (for debugging)
build-dev:
nix build ".#rooterDev" --impure

# build rooter phar version
build-dev-phar:
nix build ".#rooterDevPhar"

# update flake
update:
nix flake update

# format the nix files in this repo
fmt:
nix fmt

# clean result directory
clean:
rm -rf result
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
packages.default = self.packages.${system}.rooter;

devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [phpDev traefik dnsmasq pv gzip packages.rooterDev];
buildInputs = with pkgs; [phpDev traefik dnsmasq pv gzip just packages.rooterDev];
};
});
}

0 comments on commit 6289b7f

Please sign in to comment.