scan-build: init at 19.1.7

+46
+46
pkgs/by-name/sc/scan-build-py/package.nix
··· 1 + { 2 + lib, 3 + llvmPackages, 4 + python3, 5 + }: 6 + let 7 + inherit (llvmPackages) clang-unwrapped; 8 + in 9 + python3.pkgs.buildPythonApplication rec { 10 + pname = "scan-build-py"; 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/scan-build-py" "$out/bin/scan-build-py" 26 + ''; 27 + 28 + makeWrapperArgs = [ 29 + "--prefix" 30 + "PATH" 31 + ":" 32 + (lib.makeBinPath [ clang-unwrapped ]) 33 + ]; 34 + 35 + meta = { 36 + description = "intercepts the build process to generate a compilation database"; 37 + homepage = "https://github.com/llvm/llvm-project/tree/llvmorg-${version}/clang/tools/scan-build-py/"; 38 + mainProgram = "scan-build-py"; 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 + }