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
39 lines
809 B
Nix
39 lines
809 B
Nix
{
|
|
lib,
|
|
llvmPackages,
|
|
python3,
|
|
}:
|
|
let
|
|
inherit (llvmPackages) clang-unwrapped;
|
|
in
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "intercept-build";
|
|
inherit (clang-unwrapped) version;
|
|
|
|
format = "other";
|
|
|
|
src = clang-unwrapped + "/bin";
|
|
|
|
dontUnpack = true;
|
|
|
|
dependencies = with python3.pkgs; [
|
|
libscanbuild
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p "$out/bin"
|
|
install "$src/intercept-build" "$out/bin"
|
|
'';
|
|
|
|
meta = {
|
|
description = "intercepts the build process to generate a compilation database";
|
|
homepage = "https://github.com/llvm/llvm-project/tree/llvmorg-${version}/clang/tools/scan-build-py/";
|
|
mainProgram = "intercept-build";
|
|
license = with lib.licenses; [
|
|
asl20
|
|
llvm-exception
|
|
];
|
|
maintainers = with lib.maintainers; [ RossSmyth ];
|
|
};
|
|
}
|