-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
63 lines (63 loc) · 2.01 KB
/
Copy pathflake.nix
File metadata and controls
63 lines (63 loc) · 2.01 KB
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 = "Nix flake C++23 cross development environment";
nixConfig = {
extra-substituters = [ "https://cache.garnix.io" ];
extra-trusted-public-keys = [ "cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=" ];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# engine.url = "https://github.com/ProjetISIE/SmartPianoEngine/archive/main.tar.gz";
};
outputs =
{
self,
nixpkgs,
}:
let
forSystems = nixpkgs.lib.genAttrs [
"x86_64-linux" # "aarch64-linux"
"aarch64-darwin"
];
in
{
devShells = forSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
default =
pkgs.mkShell.override
{
stdenv = pkgs.clangStdenv; # Clang instead of GCC
}
{
packages =
with pkgs;
[
bashInteractive
clang-tools # Clang CLIs, including LSP
cmake-format # CMake formatter
cmake-language-server # Cmake LSP
doctest # Testing framework (-DBUILD_TESTING=ON builds)
doxygen # Documentation generator
lldb # Clang debug adapter
]
++ lib.optionals stdenv.isLinux [
alsa-utils # aconnect…
clang-uml # UML diagram generator
cppcheck # C++ Static analysis
fluidsynth # JACK Synthesizer
qsynth # FluidSynth GUI
socat # Serial terminal for manual testing
valgrind # Debugging and profiling
];
# shellHook = ''
# cmake -B build -GNinja -DCMAKE_BUILD_TYPE=Debug \
# -DCOVERAGE=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON # -S .
# '';
};
}
);
};
}