Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
861 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
llvmPackages,
buildPythonPackage,
libear,
}:
let
inherit (llvmPackages) clang-unwrapped;
in
buildPythonPackage rec {
pname = "libscanbuild";
inherit (clang-unwrapped) version;
format = "other";
src = clang-unwrapped.lib + "/lib/libscanbuild";
dontUnpack = true;
dependencies = [
libear
];
installPhase = ''
LIBPATH="$(toPythonPath "$out")/libscanbuild"
mkdir -p "$LIBPATH"
cp -r "$src/"* "$LIBPATH"
'';
pythonImportsCheck = [ "libscanbuild" ];
meta = {
description = "Captures all child process creation and log information about it";
homepage = "https://github.com/llvm/llvm-project/tree/llvmorg-${version}/clang/tools/scan-build-py/lib/libscanbuild";
license = with lib.licenses; [
asl20
llvm-exception
];
maintainers = with lib.maintainers; [ RossSmyth ];
};
}