-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.nix
92 lines (87 loc) · 1.79 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{ lib
, callPackage
, stdenv
, stdenvNoCC
, catch2_3
, clang
, clang-build-analyzer
, clang-tools
, codechecker
, coverxygen
, cppcheck
, doxygen
, editorconfig-checker
, gcovr
, git
, include-what-you-use
, lcov
, lizard
, llvmPackages
, m-css
, sonar-scanner-cli
, uncrustify
, with-catch3 ? false
, with-clang-build-analyzer ? false
, with-clang-tools ? false
, with-codechecker ? false
, with-coverage ? false
, with-cppcheck ? false
, with-doxygen ? false
, with-include-what-you-use ? false
, with-lizard ? false
, with-m-css ? false
, with-sonar ? false
, with-uncrustify ? false
}:
stdenvNoCC.mkDerivation {
name = "cmake-utils";
version = "0.0.0";
src = ./.;
buildInputs = [
git
clang
editorconfig-checker
] ++ lib.optionals with-coverage [
gcovr
lcov
llvmPackages.llvm
] ++ lib.optionals (with-coverage || with-catch3) [
catch2_3
] ++ lib.optionals with-clang-build-analyzer [
clang-build-analyzer
clang-tools
] ++ lib.optionals with-codechecker [
codechecker
] ++ lib.optionals with-cppcheck [
cppcheck
] ++ lib.optionals with-doxygen [
coverxygen
doxygen
] ++ lib.optionals (with-doxygen && with-m-css) [
m-css
] ++ lib.optionals with-include-what-you-use [
include-what-you-use
] ++ lib.optionals with-lizard [
lizard
] ++ lib.optionals with-sonar [
sonar-scanner-cli
] ++ lib.optionals with-uncrustify [
uncrustify
];
installPhase = ''
make install PREFIX=$out
'';
meta = {
homepage = "https://github.com/conformism/cmake-utils";
description = "CMake Utilities";
license = lib.licenses.gpl3;
maintainers = [
{
email = "[email protected]";
github = "thomaslepoix";
githubId = 26417323;
name = "Thomas Lepoix";
}
];
};
}