From c5c6b2cb6d92a6e0c98d65348d0ca7c3c0a5a397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Fri, 1 Mar 2024 08:24:07 +0100 Subject: [PATCH] feat: Add justfile with common commands --- flake.nix | 1 + justfile | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 justfile diff --git a/flake.nix b/flake.nix index 01f787e..e4053c6 100644 --- a/flake.nix +++ b/flake.nix @@ -162,6 +162,7 @@ devShells = forEachSupportedSystem ({ pkgs, system }: { default = pkgs.mkShell { inherit (self.checks.${system}.pre-commit-check) shellHook; + buildInputs = with pkgs; [ just ]; }; }); }; diff --git a/justfile b/justfile new file mode 100644 index 0000000..6c625c3 --- /dev/null +++ b/justfile @@ -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