add esp-idf tooling

This commit is contained in:
2025-01-23 11:06:49 +01:00
parent e1c2c96ccf
commit 58fd3db51e
7 changed files with 220 additions and 1 deletions

20
esp-idf.nix Normal file
View File

@@ -0,0 +1,20 @@
{
pkgs ? import <nixpkgs> {},
system ? builtins.currentSystem,
}:
pkgs.stdenv.mkDerivation rec {
pname = "esp-idf";
version = "5.4";
src = pkgs.fetchFromGitHub {
owner = "espressif";
repo = "esp-idf";
rev = "v${version}";
fetchSubmodules = true;
hash = "sha256-9OQ/0DGwgfR3MkRWd6zSe1FD3Ywt4Ugw8J/BFu1Vfw0=";
};
buildInputs = with pkgs; [
python3
libusb1
];
}