Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
861 B
Nix
43 lines
861 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|