-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
34 lines (31 loc) · 877 Bytes
/
flake.nix
File metadata and controls
34 lines (31 loc) · 877 Bytes
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
{
description = "Dev shells to build this project";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05";
};
outputs = { self, nixpkgs }:
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
in {
devShells.x86_64-linux = {
# shell for native build
native = pkgs.mkShell {
buildInputs = with pkgs; [
cmake
cppcheck
gnumake
gtest
llvmPackages_20.clang
llvmPackages_20.clang-tools
llvmPackages_20.lld
];
shellHook = ''
export CC=${pkgs.llvmPackages_20.clang}/bin/clang
export CXX=${pkgs.llvmPackages_20.clang}/bin/clang++
export LD=${pkgs.llvmPackages_20.lld}/bin/lld
'';
};
default = self.devShells.x86_64-linux.native;
};
};
}