feat: Add justfile with common commands

This commit is contained in:
Jalil David Salamé Messina 2024-03-01 08:24:07 +01:00
parent ea8ca1d28f
commit c5c6b2cb6d
Signed by: jalil
GPG key ID: F016B9E770737A0B
2 changed files with 15 additions and 0 deletions

View file

@ -162,6 +162,7 @@
devShells = forEachSupportedSystem ({ pkgs, system }: { devShells = forEachSupportedSystem ({ pkgs, system }: {
default = pkgs.mkShell { default = pkgs.mkShell {
inherit (self.checks.${system}.pre-commit-check) shellHook; inherit (self.checks.${system}.pre-commit-check) shellHook;
buildInputs = with pkgs; [ just ];
}; };
}); });
}; };

14
justfile Normal file
View file

@ -0,0 +1,14 @@
default:
echo 'Hello, world!'
# Update a specific flake input
update input:
nix flake lock --update-input {{input}} --commit-lock-file
# Amend Update flake.lock PR
flake-pr:
git branch -D update_flake_lock_action
gix fetch origin
git switch update_flake_lock_action
git commit --amend --no-edit
git push origin update_flake_lock_action --force-with-lease