forked from lix-project/lix
flake: fix devShell on i686-linux by disabling ClangBuildAnalyzer on it
ClangBuildAnalyzer doesn't build on i686-linux due to
`long long int`/`size_t` conversion errors, so let's just exclude it
from the devshell on that platform
Change-Id: If1077a7b3860db4381999c8e304f6d4b2bc96a05
This commit is contained in:
parent
aac32327d5
commit
7e940cc170
2 changed files with 7 additions and 3 deletions
|
@ -408,9 +408,10 @@
|
||||||
pkgs.buildPackages.meson
|
pkgs.buildPackages.meson
|
||||||
pkgs.buildPackages.ninja
|
pkgs.buildPackages.ninja
|
||||||
pkgs.buildPackages.cmake
|
pkgs.buildPackages.cmake
|
||||||
|
]
|
||||||
pkgs.buildPackages.clangbuildanalyzer
|
++
|
||||||
];
|
lib.optionals (lib.meta.availableOn pkgs.stdenv.hostPlatform pkgs.buildPackages.clangbuildanalyzer)
|
||||||
|
[ pkgs.buildPackages.clangbuildanalyzer ];
|
||||||
|
|
||||||
src = null;
|
src = null;
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
maintainers = with lib.maintainers; [ lf- ];
|
maintainers = with lib.maintainers; [ lf- ];
|
||||||
license = lib.licenses.unlicense;
|
license = lib.licenses.unlicense;
|
||||||
platforms = lib.platforms.unix;
|
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";
|
mainProgram = "ClangBuildAnalyzer";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue