Qyriad
7e940cc170
ClangBuildAnalyzer doesn't build on i686-linux due to
`long long int`/`size_t` conversion errors, so let's just exclude it
from the devshell on that platform
Change-Id: If1077a7b3860db4381999c8e304f6d4b2bc96a05
34 lines
1,007 B
Nix
34 lines
1,007 B
Nix
# 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;
|
|
# `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;
|
|
mainProgram = "ClangBuildAnalyzer";
|
|
};
|
|
})
|