diff options
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 24 |
1 files changed, 5 insertions, 19 deletions
@@ -26,7 +26,7 @@ treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix; - ciPackagesBackend = with pkgs; [ + ciPackages = with pkgs; [ go # Need that obviously gofumpt # Go formatter golangci-lint # Local/CI linter @@ -75,37 +75,23 @@ }; }; }; - - # ci = - # pkgs.runCommand "ci-runner" - # { - # nativeBuildInputs = [ ci-script ] ++ ciPackages; # Include ci-script and ciPackages - # inherit (self.checks.${system}.pre-commit-check) shellHook; # Reuse pre-commit shellHook if needed - # } - # '' - # echo "Running CI script with essential packages..." - # # Ensure the ci-script is executable and in PATH for this check - # export PATH=$out/bin:$PATH - # run-ci - # touch $out # Ensure the output path is created - # ''; }; devShells = { default = pkgs.mkShell { buildInputs = - [ ] ++ ciPackagesBackend ++ devPackages ++ self.checks.${system}.pre-commit-check.enabledPackages; + [ ] ++ ciPackages ++ devPackages ++ self.checks.${system}.pre-commit-check.enabledPackages; shellHook = '' ${self.checks.${system}.pre-commit-check.shellHook} ''; }; - ci-backend = pkgs.mkShell { - buildInputs = [ ] ++ ciPackagesBackend; + ci = pkgs.mkShell { + buildInputs = [ ] ++ ciPackages; CI = true; shellHook = '' - echo "Entering CI backend shell. Only essential CI tools available." + echo "Entering CI shell. Only essential CI tools available." ''; }; }; |
