nixpkgs-suyu/pkgs
Martin Weinelt 06d92ba195
esphome: fix permissions on src file before modifying them
We store esphome in the nix store, which results in its file permissions
being 0444. Esphome, when compiling a firmware image, will copy these
files from the nix store to a working directory. When updating between
versions it will notice these files changed and try to copy the new
version over, which would break, because the user had no write
permissions on the files.

❯ esphome compile 01e4ac.yml
INFO Reading configuration 01e4ac.yml...
INFO Detected timezone 'CET' with UTC offset 1 and daylight saving time from 27 March 02:00:00 to 30 October 03:00:00
INFO Generating C++ source...
ERROR Error copying file /nix/store/lmzrgl1arqfd98jcss4rsmmy6dbffddn-esphome-1.19.2/lib/python3.8/site-packages/esphome/components/api/api_connection.cpp to 01e4ac/src/esphome/components/api/api_connection.cpp: [Errno 13] Permission denied: '01e4ac/src/esphome/components/api/api_connection.cpp'

To fix this we modify chmod to 0644 just before esphome tries a copy
operation, which will fix permissions on existing working directories
just in time.
2021-06-23 05:07:11 +02:00
..
applications jmol: 14.31.39 -> 14.31.41 2021-06-22 19:47:51 -07:00
build-support
common-updater
data Merge branch 'master' into haskell-updates 2021-06-22 23:11:48 +02:00
desktops Merge pull request #127283 from ncfavier/thunar-media-tags 2021-06-20 18:19:10 +02:00
development python3Packages.pysbd: 0.3.3 -> 0.3.4 2021-06-22 20:03:07 -07:00
games Merge pull request #127759 from peterhoeg/u/widelands 2021-06-22 16:15:53 +02:00
misc Merge pull request #127715 from devhell/bump-multilockscreen 2021-06-22 02:42:47 +02:00
os-specific Merge pull request #127656 from elohmeier/tuna 2021-06-22 15:22:55 +02:00
pkgs-lib
servers consul: 1.9.6 -> 1.9.7 2021-06-22 17:44:59 +02:00
shells Merge pull request #127487 from mjlbach/zsh-powerlevel10k/fix-gitstatus 2021-06-19 22:31:29 +02:00
stdenv
test
tools esphome: fix permissions on src file before modifying them 2021-06-23 05:07:11 +02:00
top-level Merge pull request #127173 from aanderse/kodi 2021-06-22 20:24:06 -04:00