blob: 1bfc2d9a4cd7698c486865814ef2e280d07c9062 (
plain)
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
|
{
lib,
stdenv,
cmake,
meson,
ninja,
llvmPackages,
}:
let
inherit (lib) fileset;
in
stdenv.mkDerivation {
pname = "lix-clang-tidy-checks";
# Setting the version to the Lix version is just going to cause pointless
# rebuilds due to versionSuffix and similar, and I cannot conceive of a usage
# where we actually care about its version since this is internal-only.
version = "0.1";
src = fileset.toSource {
root = ./.;
fileset = fileset.unions [
./meson.build
./meson.options
(fileset.fileFilter (
{ hasExt, ... }:
builtins.any hasExt [
"cc"
"hh"
]
) ./.)
];
};
nativeBuildInputs = [
meson
cmake
ninja
];
buildInputs = [
llvmPackages.llvm
llvmPackages.clang-unwrapped.dev
];
}
|