-
-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathflake.nix
More file actions
28 lines (27 loc) · 731 Bytes
/
flake.nix
File metadata and controls
28 lines (27 loc) · 731 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
esp-dev.url = "github:mirrexagon/nixpkgs-esp-dev";
};
outputs = {
self,
nixpkgs,
esp-dev,
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
bun
esp-dev.packages.${system}.esp-idf-full
];
shellHook = ''
export CLANGD_FLAGS="--query-driver=`which riscv32-esp-elf-g++`,`which riscv32-esp-elf-gcc`,`which xtensa-esp32-elf-g++`,`which xtensa-esp32-elf-gcc` --clang-tidy --background-index --suggest-missing-includes"
export IDF_CCACHE_ENABLE=1
'';
};
};
}