tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
analyze-build: init at 19.1.7
Ross Smyth
6 months ago
b8f9fca9
9e536408
+46
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
an
analyze-build
package.nix
+46
pkgs/by-name/an/analyze-build/package.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{
2
+
lib,
3
+
llvmPackages,
4
+
python3,
5
+
}:
6
+
let
7
+
inherit (llvmPackages) clang-unwrapped;
8
+
in
9
+
python3.pkgs.buildPythonApplication rec {
10
+
pname = "analyze-build";
11
+
inherit (clang-unwrapped) version;
12
+
13
+
format = "other";
14
+
15
+
src = clang-unwrapped + "/bin";
16
+
17
+
dontUnpack = true;
18
+
19
+
dependencies = with python3.pkgs; [
20
+
libscanbuild
21
+
];
22
+
23
+
installPhase = ''
24
+
mkdir -p "$out/bin"
25
+
install "$src/analyze-build" "$out/bin/"
26
+
'';
27
+
28
+
makeWrapperArgs = [
29
+
"--prefix"
30
+
"PATH"
31
+
":"
32
+
(lib.makeBinPath [ clang-unwrapped ])
33
+
];
34
+
35
+
meta = {
36
+
description = "run Clang static analyzer against a project with compilation database";
37
+
homepage = "https://github.com/llvm/llvm-project/tree/llvmorg-${version}/clang/tools/scan-build-py/";
38
+
mainProgram = "scan-build";
39
+
license = with lib.licenses; [
40
+
asl20
41
+
llvm-exception
42
+
];
43
+
maintainers = with lib.maintainers; [ RossSmyth ];
44
+
platforms = lib.intersectLists python3.meta.platforms clang-unwrapped.meta.platforms;
45
+
};
46
+
}