Skip to content

Commit

Permalink
run health checks for Nix flake inputs upon shell activation
Browse files Browse the repository at this point in the history
  • Loading branch information
franckrasolo committed Mar 2, 2024
1 parent 9fc47f1 commit b0aa80f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ export GRADLE_OPTS := "-Dorg.gradle.warning.mode=fail -Dorg.gradle.logging.stack
_targets:
@just --list --unsorted --list-heading $'Available targets:\n' --list-prefix " "

# checks Nix flake inputs
@check-flake:
nix run "github:DeterminateSystems/flake-checker"

# updates the top-level flake lock file
@update-flake:
nix flake update --commit-lock-file --commit-lockfile-summary "update Nix flake inputs"
Expand Down
6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@
devShells.default = pkgs.mkShell rec {
packages = with pkgs; [
direnv
just
k3d
kubectl
kubectx
temurin-bin-21
];

shellHook = ''
# health checks for Nix flake inputs
nix run "github:DeterminateSystems/flake-checker"
'';
};
});
}

0 comments on commit b0aa80f

Please sign in to comment.