diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-17 19:50:35 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-17 19:50:35 -0700 |
| commit | 39fbf2cfb4886c69fc9445a75d4d0aeae66f5ef9 (patch) | |
| tree | 7a4c919de128d8630857603701545f6b88beb852 /flake.nix | |
| parent | manage the repository with nix (diff) | |
| download | x-39fbf2cfb4886c69fc9445a75d4d0aeae66f5ef9.tar.gz | |
small cleanup
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." ''; }; }; |
