diff --git a/.envrc b/.envrc index 2f8e1d3..cffc922 100644 --- a/.envrc +++ b/.envrc @@ -1 +1 @@ -use flake --impure +use flake . --impure diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..6e9eddf --- /dev/null +++ b/Justfile @@ -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 \ No newline at end of file diff --git a/flake.lock b/flake.lock index 30508fb..d9d3f71 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1698890957, - "narHash": "sha256-DJ+SppjpPBoJr0Aro9TAcP3sxApCSieY6BYBCoWGUX8=", + "lastModified": 1698931758, + "narHash": "sha256-pwl9xS9JFMXXR1lUP/QOqO9hiZKukEcVUU1A0DKQwi4=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c082856b850ec60cda9f0a0db2bc7bd8900d708c", + "rev": "b644d97bda6dae837d577e28383c10aa51e5e2d2", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 5474273..61449d3 100644 --- a/flake.nix +++ b/flake.nix @@ -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]; }; }); }