summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/libscanbuild/default.nix
blob: 987e806e9ebfd666b28494d2c0f09f3030888eda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  lib,
  llvmPackages,
  buildPythonPackage,
  libear,
}:
let
  inherit (llvmPackages) clang-unwrapped;
in
buildPythonPackage rec {
  pname = "libscanbuild";
  inherit (clang-unwrapped) version;

  pyproject = false;

  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 ];
  };
}