Last active
September 7, 2019 13:23
-
-
Save fbmnds/e069ffa413fb14a0ff548217ded88302 to your computer and use it in GitHub Desktop.
ESP-IDF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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