nixpkgs/pkgs/tools/misc/esptool/default.nix

25 lines
719 B
Nix
Raw Normal View History

2017-09-18 00:30:13 +00:00
{ stdenv, fetchFromGitHub, python3, openssl }:
2017-05-23 23:44:38 +00:00
python3.pkgs.buildPythonApplication rec {
name = "esptool-${version}";
2017-09-18 00:30:13 +00:00
version = "2.1";
2017-05-23 23:44:38 +00:00
src = fetchFromGitHub {
owner = "espressif";
repo = "esptool";
rev = "v${version}";
2017-09-18 00:30:13 +00:00
sha256 = "137p0kcscly95qpjzgx1yxm8k2wf5y9v3srvlhp2ajniirgv8ijv";
2017-05-23 23:44:38 +00:00
};
buildInputs = with python3.pkgs; [ flake8 flake8-future-import ];
2017-09-18 00:30:13 +00:00
propagatedBuildInputs = with python3.pkgs; [ pyserial pyaes ecdsa openssl ];
2017-05-23 23:44:38 +00:00
meta = with stdenv.lib; {
description = "ESP8266 and ESP32 serial bootloader utility";
homepage = https://github.com/espressif/esptool;
license = licenses.gpl2;
maintainers = [ maintainers.dezgeg ];
platforms = platforms.linux;
};
}