aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix7
-rw-r--r--misc/clangbuildanalyzer.nix3
2 files changed, 7 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 3dc9b3ac3..79ac9caea 100644
--- a/flake.nix
+++ b/flake.nix
@@ -408,9 +408,10 @@
pkgs.buildPackages.meson
pkgs.buildPackages.ninja
pkgs.buildPackages.cmake
-
- pkgs.buildPackages.clangbuildanalyzer
- ];
+ ]
+ ++
+ lib.optionals (lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.buildPackages.clangbuildanalyzer)
+ [ pkgs.buildPackages.clangbuildanalyzer ];
src = null;
diff --git a/misc/clangbuildanalyzer.nix b/misc/clangbuildanalyzer.nix
index cee8a0d77..d73fa8bbb 100644
--- a/misc/clangbuildanalyzer.nix
+++ b/misc/clangbuildanalyzer.nix
@@ -25,6 +25,9 @@ stdenv.mkDerivation (finalAttrs: {
maintainers = with lib.maintainers; [ lf- ];
license = lib.licenses.unlicense;
platforms = lib.platforms.unix;
+ # `long long int` != `size_t`
+ # There's no convenient lib.platforms.32bit or anything, but it's easy enough to do ourselves.
+ badPlatforms = lib.filter (plat: (lib.systems.elaborate plat).is32bit) lib.platforms.all;
mainProgram = "ClangBuildAnalyzer";
};
})