aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/clangbuildanalyzer.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/misc/clangbuildanalyzer.nix b/misc/clangbuildanalyzer.nix
new file mode 100644
index 000000000..a317e5144
--- /dev/null
+++ b/misc/clangbuildanalyzer.nix
@@ -0,0 +1,27 @@
+# Upstreaming here, can be deleted once it's upstreamed:
+# https://github.com/NixOS/nixpkgs/pull/297102
+{ stdenv, lib, cmake, fetchFromGitHub }:
+stdenv.mkDerivation (finalAttrs: {
+ pname = "clangbuildanalyzer";
+ version = "1.5.0";
+
+ src = fetchFromGitHub {
+ owner = "aras-p";
+ repo = "ClangBuildAnalyzer";
+ rev = "v${finalAttrs.version}";
+ sha256 = "sha256-kmgdk634zM0W0OoRoP/RzepArSipa5bNqdVgdZO9gxo=";
+ };
+
+ nativeBuildInputs = [
+ cmake
+ ];
+
+ 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;
+ mainProgram = "ClangBuildAnalyzer";
+ };
+})