summaryrefslogtreecommitdiff
path: root/ci/default.nix
diff options
context:
space:
mode:
authorWolfgang Walther <walther@technowledgy.de>2025-05-10 21:55:05 +0200
committerWolfgang Walther <walther@technowledgy.de>2025-05-11 12:14:57 +0200
commita553ef2950e1e7f35491c19c3b61ba22e73a0d08 (patch)
tree76f2f582b2aa214255f44f210a6fd7f282b11357 /ci/default.nix
parentci/shell: init (diff)
downloadnixpkgs-a553ef2950e1e7f35491c19c3b61ba22e73a0d08.tar.gz
ci/parse: init
The nix-parse workflow can now be run locally the same way as in CI. To do this, the CI's workflow was slightly adjusted. Instead of testing only the changed files, we're now testing all files in the repository. This is possible in two ways: 1. By calling nix-instantiate once with all files as arguments. This will be rather fast, but only the first error is shown before it errors out. 2. By calling nix-instantiate once for each file. This will be much slower, but has the advantage that we see all errors at once. To avoid running the long variant every time, we first do a quick check with the fast version. If that fails, we run the slower one to report the errors. This gives us the best of both.
Diffstat (limited to 'ci/default.nix')
-rw-r--r--ci/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/ci/default.nix b/ci/default.nix
index 396fb172df23..67b1eddf1000 100644
--- a/ci/default.nix
+++ b/ci/default.nix
@@ -76,5 +76,8 @@ in
manual-nixos = (import ../nixos/release.nix { }).manual.${system} or null;
manual-nixpkgs = (import ../pkgs/top-level/release.nix { }).manual;
manual-nixpkgs-tests = (import ../pkgs/top-level/release.nix { }).manual.tests;
+ parse = pkgs.lib.recurseIntoAttrs {
+ latest = pkgs.callPackage ./parse.nix { nix = pkgs.nixVersions.latest; };
+ };
shell = import ../shell.nix { inherit nixpkgs system; };
}