8 buildllvmsparse ? false,
20 src = fetchFromGitHub {
24 sha256 = "sha256-Pv3bd2cjnQKnhH7TrkYWfDEeaq6u/q/iK1ZErzn6bME=";
27 NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isClang [
28 "-Wno-incompatible-function-pointer-types"
31 nativeBuildInputs = [ pkg-config ];
36 ] ++ lib.optionals buildllvmsparse [ libllvm ] ++ lib.optionals buildc2xml [ libxml2.dev ];
39 "PREFIX=${placeholder "out"}"
40 "CXX=${stdenv.cc.targetPrefix}c++"
44 description = "Semantic analysis tool for C";
45 homepage = "https://sparse.docs.kernel.org/";
46 maintainers = with lib.maintainers; [ momeemt ];
47 license = lib.licenses.gpl2Plus;
48 platforms = lib.platforms.all;