Skip to content

Instantly share code, notes, and snippets.

@fbmnds
Last active September 7, 2019 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fbmnds/e069ffa413fb14a0ff548217ded88302 to your computer and use it in GitHub Desktop.
Save fbmnds/e069ffa413fb14a0ff548217ded88302 to your computer and use it in GitHub Desktop.
ESP-IDF
{ nixpkgs ? import <nixpkgs> {} }:
let
inherit (nixpkgs) pkgs;
in
pkgs.stdenv.mkDerivation {
name = "esp-idf-env";
buildInputs = with pkgs; [
cmake gawk gperf gettext automake bison flex texinfo help2man libtool autoconf ncurses5 cmake
(python37.withPackages (ppkgs: with ppkgs; [ pyserial future cryptography click pyelftools ]))
(pkgs.callPackage ~/esp/esp32-toolchain.nix {})
];
shellHook = ''
export NIX_CFLAGS_LINK=-lncurses
export IDF_PATH=$HOME/esp/esp-idf
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment