-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
36 lines (30 loc) · 945 Bytes
/
flake.nix
File metadata and controls
36 lines (30 loc) · 945 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
35
36
{
description = "Flake for Velox groundstation";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-linux";
nixpkgs-esp-dev = builtins.fetchGit {
url = "https://github.com/mirrexagon/nixpkgs-esp-dev.git";
rev = "6c34f2436015eb6c107970d9b88f3d5d4600c6fa";
};
pkgs = import nixpkgs {
inherit system;
overlays = [ (import "${nixpkgs-esp-dev}/overlay.nix") ];
};
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [
esp-idf-full
minicom
cmake
esptool
];
shellHook = ''
export GIT_CONFIG_GLOBAL=$(realpath .gitconfig)
git config --global --add safe.directory '${pkgs.esp-idf-full}'
echo "git config --global --add safe.directory '${pkgs.esp-idf-full}'"
'';
};
};
}