2024-03-19 06:03:48 +00:00
|
|
|
# Upstreaming here, can be deleted once it's upstreamed:
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/297102
|
2024-04-04 23:07:44 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
cmake,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2024-03-19 06:03:48 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "clangbuildanalyzer";
|
|
|
|
version = "1.5.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aras-p";
|
|
|
|
repo = "ClangBuildAnalyzer";
|
|
|
|
rev = "v${finalAttrs.version}";
|
|
|
|
sha256 = "sha256-kmgdk634zM0W0OoRoP/RzepArSipa5bNqdVgdZO9gxo=";
|
|
|
|
};
|
|
|
|
|
2024-04-04 23:07:44 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2024-03-19 06:03:48 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tool for analyzing Clang's -ftrace-time files";
|
|
|
|
homepage = "https://github.com/aras-p/ClangBuildAnalyzer";
|
|
|
|
maintainers = with lib.maintainers; [ lf- ];
|
|
|
|
license = lib.licenses.unlicense;
|
|
|
|
platforms = lib.platforms.unix;
|
2024-05-07 04:59:41 +00:00
|
|
|
# `long long int` != `size_t`
|
|
|
|
# There's no convenient lib.platforms.32bit or anything, but it's easy enough to do ourselves.
|
|
|
|
badPlatforms = lib.filter (plat: (lib.systems.elaborate plat).is32bit) lib.platforms.all;
|
2024-03-19 06:03:48 +00:00
|
|
|
mainProgram = "ClangBuildAnalyzer";
|
|
|
|
};
|
|
|
|
})
|