-
Notifications
You must be signed in to change notification settings - Fork 4
/
esp-idf.nix
55 lines (46 loc) · 1.03 KB
/
esp-idf.nix
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ stdenv, fetchFromGitHub, pkgs, makeWrapper }:
let
version = "0a03a55c1eb44a354c9ad5d91d91da371fe23f84";
pypkgs = python-packages: with python-packages; [
pyserial
click
cryptography
future
pyparsing
pyelftools
setuptools
pip
];
python = pkgs.python2.withPackages pypkgs;
in stdenv.mkDerivation rec {
name = "esp-idf";
inherit python;
src = fetchFromGitHub {
owner = "espressif";
repo = "esp-idf";
rev = "${version}";
fetchSubmodules = true;
sha256 = "067rgddhh4fdpnarxz7qjhfb377zdppgk8xsjqpkc07rdyagmwx6";
};
propagatedBuildInputs = [
pkgs.cmake
pkgs.ninja
pkgs.gcc
pkgs.git
pkgs.ncurses
pkgs.flex
pkgs.bison
pkgs.gperf
pkgs.ccache
python
];
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
installPhase = ''
cp -r . $out
'';
meta = with stdenv.lib; {
description = "ESP IDF";
homepage = https://docs.espressif.com/projects/esp-idf/en/stable/get-started/linux-setup.html;
license = licenses.gpl3;
};
}