-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
63 lines (57 loc) · 1.88 KB
/
flake.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
{
description = "CMake Utilities";
nixConfig.bash-prompt-suffix = "(cmake-utils) ";
inputs = {
# nixpkgs.url = "flake:nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self
, nixpkgs
, flake-utils
}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system}.extend self.overlays.pkgs;
in {
devShells = {
default = pkgs.mkShell {
packages = [ pkgs.cmake-utils-full ];
inputsFrom = [ pkgs.cmake-utils-full ];
};
};
packages = {
default = pkgs.cmake-utils;
cmake-utils = pkgs.cmake-utils;
cmake-utils-full = pkgs.cmake-utils-full;
};
}) // {
overlays = {
pkgs = final: prev: {
cmake-utils = prev.callPackage ./default.nix { doxygen = final.doxygen-clang; };
cmake-utils-full = final.cmake-utils.override {
with-catch3 = true;
with-clang-build-analyzer = true;
with-clang-tools = true;
with-codechecker = true;
with-coverage = true;
with-cppcheck = true;
with-doxygen = true;
with-icon = true;
with-include-what-you-use = true;
with-lizard = true;
with-m-css = true;
with-sonar = true;
with-uncrustify = true;
};
clang-build-analyzer = prev.callPackage ./nix/clang-build-analyzer.nix {};
codechecker = prev.callPackage ./nix/codechecker.nix {};
coverxygen = prev.callPackage ./nix/coverxygen.nix { doxygen = final.doxygen-clang; };
doxygen-clang = prev.callPackage ./nix/doxygen.nix {};
lizard = prev.callPackage ./nix/lizard.nix {};
m-css = prev.callPackage ./nix/m-css.nix { doxygen = final.doxygen-clang; };
uncrustify = prev.callPackage ./nix/uncrustify.nix { inherit (prev) uncrustify; };
};
};
};
}