diff options
| author | Cole Helbling <cole.e.helbling@outlook.com> | 2025-04-02 07:55:32 -0700 |
|---|---|---|
| committer | Cole Helbling <cole.e.helbling@outlook.com> | 2025-04-02 12:44:41 -0700 |
| commit | 837ff226bbd44c29303611703a4085d48f0957c9 (patch) | |
| tree | 48c593911268adacc751d9dd37fcd9ea6e24fde3 /flake.nix | |
| parent | Revert "flake: fix `nix flake check --all-systems --no-build` again" (diff) | |
| download | nixpkgs-837ff226bbd44c29303611703a4085d48f0957c9.tar.gz | |
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.
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix index a82bb383c062..3bd0a48a5cce 100644 --- a/flake.nix +++ b/flake.nix @@ -98,15 +98,26 @@ checks = forAllSystems ( system: - { - tarball = jobs.${system}.tarball; - } + { } + // + lib.optionalAttrs + ( + # Exclude x86_64-freebsd because "Failed to evaluate rustc-wrapper-1.85.0: «broken»: is marked as broken" + system != "x86_64-freebsd" + ) + { + tarball = jobs.${system}.tarball; + } // lib.optionalAttrs ( 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 @@ -156,8 +167,8 @@ system != "armv6l-linux" # Exclude riscv64-linux because "Package ‘ghc-9.6.6’ in .../pkgs/development/compilers/ghc/common-hadrian.nix:579 is not available on the requested hostPlatform" && system != "riscv64-linux" - # Exclude FreeBSD because "Package ‘ghc-9.6.6’ in .../pkgs/development/compilers/ghc/common-hadrian.nix:579 is not available on the requested hostPlatform" - && !self.legacyPackages.${system}.stdenv.hostPlatform.isFreeBSD + # Exclude x86_64-freebsd because "Package ‘ghc-9.6.6’ in .../pkgs/development/compilers/ghc/common-hadrian.nix:579 is not available on the requested hostPlatform" + && system != "x86_64-freebsd" ) { /** @@ -167,7 +178,15 @@ } ); - formatter = forAllSystems (system: (import ./ci { inherit system; }).fmt.pkg); + formatter = lib.filterAttrs ( + system: _: + # 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" + # Exclude x86_64-freebsd because "Package ‘go-1.22.12-freebsd-amd64-bootstrap’ in /nix/store/0yw40qnrar3lvc5hax5n49abl57apjbn-source/pkgs/development/compilers/go/binary.nix:50 is not available on the requested hostPlatform" + && system != "x86_64-freebsd" + ) (forAllSystems (system: (import ./ci { inherit system; }).fmt.pkg)); /** A nested structure of [packages](https://nix.dev/manual/nix/latest/glossary#package-attribute-set) and other values. |
