platformio: Patch warning about missing udev rules

This adds the sentence "On NixOS add the platformio package to
services.udev.packages" to the warning.
This commit is contained in:
Fabian Geiselhart 2020-06-29 19:45:27 +02:00
parent ecb560bf47
commit 5ed47f34e4
2 changed files with 15 additions and 0 deletions

View file

@ -82,6 +82,7 @@ in buildPythonApplication rec {
patches = [
./fix-searchpath.patch
./use-local-spdx-license-list.patch
./missing-udev-rules-nixos.patch
];
postPatch = ''

View file

@ -0,0 +1,14 @@
diff --git a/platformio/exception.py b/platformio/exception.py
index d291ad7f..4761a35b 100644
--- a/platformio/exception.py
+++ b/platformio/exception.py
@@ -195,7 +195,8 @@ class MissedUdevRules(InvalidUdevRules):
MESSAGE = (
"Warning! Please install `99-platformio-udev.rules`. \nMode details: "
- "https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules"
+ "https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules\n"
+ "On NixOS add the platformio package to services.udev.packages"
)