7 , buildllvmsparse ? false
13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 sha256 = "sha256-Pv3bd2cjnQKnhH7TrkYWfDEeaq6u/q/iK1ZErzn6bME=";
24 nativeBuildInputs = [ pkg-config ];
26 buildInputs = [ sqlite openssl ]
27 ++ lib.optionals buildllvmsparse [ libllvm ]
28 ++ lib.optionals buildc2xml [ libxml2.dev ];
30 makeFlags = [ "PREFIX=${placeholder "out"}" "CXX=${stdenv.cc.targetPrefix}c++" ];
33 description = "A semantic analysis tool for C";
34 homepage = "https://sparse.docs.kernel.org/";
35 maintainers = with maintainers; [ marsam ];
36 license = licenses.gpl2Plus;
37 platforms = platforms.all;