Skip to content

Instantly share code, notes, and snippets.

@fbmnds
Created August 18, 2019 20:19
Show Gist options
  • Select an option

  • Save fbmnds/f4058ad8612eaaf468f788ec0f70870d to your computer and use it in GitHub Desktop.

Select an option

Save fbmnds/f4058ad8612eaaf468f788ec0f70870d to your computer and use it in GitHub Desktop.
ESP8266_RTOS_SDK
{ nixpkgs ? import <nixpkgs> {} }:
let
inherit (nixpkgs) pkgs;
in
pkgs.stdenv.mkDerivation {
name = "esp8266-env";
buildInputs = with pkgs; [
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/esp8266-toolchain.nix {})
];
shellHook = ''
export NIX_CFLAGS_LINK=-lncurses
export IDF_PATH=$HOME/esp/ESP8266_RTOS_SDK
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment