Hi,
Maybe you remember our conversation...
On 02-01-2018 11:11:00, Gemini Lasswell wrote:
> On Monday, January 1, 2018 at 4:59:25 AM UTC-8, Matthias Beyer
> wrote:
> > Hi,
> >
> > I have a ESP8266 and I want to program it from NixOS.
>
> I've written an almost-finished patch for nixpkgs which adds an
> arduinoWithPackages which works like emacsWithPackages, and it happens
> to include the ESP8266 board definition. I just uploaded it to
>
https://github.com/gazally/nixpkgs/tree/arduino. It's based on master,
> but you could cherry-pick its two commits into your own nixpkgs repo
> and then use an expression like this one:
>
> pkgs.arduinoWithPackages (apkgs: with apkgs; [ esp8266 ])
>
> to make an arduino IDE which includes the ESP8266 toolchain. I've used
> it with Adafruit's ESP8266 breakout.
Unfortunately, this does not build for me (I cherry-picked your two
commits onto 33a4de2941d49269229267c13eec02551b4437b6 which is my
current unstable branch):
+nix-repl> :b pkgs.arduinoWithPackages (apkgs: with apkgs; [ esp8266 ])
[...]
unpacking source archive /nix/store/qqfqvz0hfjqlmzv8cii0rqzwy15r54di-mkspiffs-0.1.2-linux64.tar.gz
unpacking source archive /nix/store/vbrlkgjpg5nkkg42zyscl2hp5q10kzwn-linux64-xtensa-lx106-elf-gb404fb9.tgz
source root is /tmp/nix-build-esp8266-2.3.0.drv-0
setting SOURCE_DATE_EPOCH to timestamp 1466143132 of file /tmp/nix-build-esp8266-2.3.0.drv-0/esptool-0.4.9-linux64/esptool
patching sources
configuring
no configure script, doing nothing
building
no Makefile, doing nothing
installing
cp: cannot stat 'Arduino-09826c6d87e54c15422da90f060377c9ef188947-src/': No such file or directory
builder for ‘/nix/store/9spy256psaj9bj2wdfj46hvbpcdfy1h2-esp8266-2.3.0.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/h1lkyh5pavskzn3dihn6qbr8zpv1ypm1-arduino-with-packages-1.8.5.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/h1lkyh5pavskzn3dihn6qbr8zpv1ypm1-arduino-with-packages-1.8.5.drv’ failed
+nix-repl>
I'm not sure whether this is my fault (missing patches or something)
or whether the branch contains the failure.
>
> Regarding your communication problem, if you're connecting your
> ESP8266 via USB, have you written a UDEV rule for it?
I didn't even know that this is required. Do you have a snippet for
me? :-)
It's my first time doing anything with external hardware, youknow :-)