From 082e8798ea8ab0832bf9c502361c7885f5769f96 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 2 Apr 2025 07:55:32 -0700 Subject: [PATCH 1/3] flake: fix `nix flake check --all-systems --no-build` again This regressed in be4d27febe7776aac010f1ce11e1ff1f60f09bdd, because sphinx-issues depends on pandoc at build-time (which depends on GHC). Previously fixed in https://github.com/NixOS/nixpkgs/pull/349076. --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index a82bb383c062..c594afafd5f7 100644 --- a/flake.nix +++ b/flake.nix @@ -107,6 +107,10 @@ self.legacyPackages.${system}.stdenv.hostPlatform.isLinux # Exclude power64 due to "libressl is not available on the requested hostPlatform" with hostPlatform being power64 && !self.legacyPackages.${system}.targetPlatform.isPower64 + # Exclude armv6l-linux because "cannot bootstrap GHC on this platform ('armv6l-linux' with libc 'defaultLibc')" + && system != "armv6l-linux" + # Exclude riscv64-linux because "cannot bootstrap GHC on this platform ('riscv64-linux' with libc 'defaultLibc')" + && system != "riscv64-linux" ) { # Test that ensures that the nixosSystem function can accept a lib argument From 7d2e5370e2ab87c51140216b55fada0ab76f48f5 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 2 Apr 2025 07:55:32 -0700 Subject: [PATCH 2/3] ci/eval: check that flake outputs on all systems still evaluate --- .github/workflows/eval.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index 82781f96c736..93fab2f089c9 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -47,6 +47,9 @@ jobs: with: extra_nix_config: sandbox = true + - name: Ensure flake outputs on all systems still evaluate + run: nix --experimental-features 'nix-command flakes' flake check --all-systems --no-build + - name: Evaluate the list of all attributes and get the systems matrix id: systems run: | From 09a54c33e716a575d590b9e1e3150eba307034a6 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Wed, 2 Apr 2025 11:34:25 -0700 Subject: [PATCH 3/3] ci/eval: move flake eval check to eval-aliases job --- .github/workflows/eval.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index 93fab2f089c9..e8fff3cb20d8 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -47,9 +47,6 @@ jobs: with: extra_nix_config: sandbox = true - - name: Ensure flake outputs on all systems still evaluate - run: nix --experimental-features 'nix-command flakes' flake check --all-systems --no-build - - name: Evaluate the list of all attributes and get the systems matrix id: systems run: | @@ -78,6 +75,9 @@ jobs: with: extra_nix_config: sandbox = true + - name: Ensure flake outputs on all systems still evaluate + run: nix --experimental-features 'nix-command flakes' flake check --all-systems --no-build + - name: Query nixpkgs with aliases enabled to check for basic syntax errors run: | time nix-env -I ./nixpkgs -f ./nixpkgs -qa '*' --option restrict-eval true --option allow-import-from-derivation false >/dev/null