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:
parent
ecb560bf47
commit
5ed47f34e4
@ -82,6 +82,7 @@ in buildPythonApplication rec {
|
||||
patches = [
|
||||
./fix-searchpath.patch
|
||||
./use-local-spdx-license-list.patch
|
||||
./missing-udev-rules-nixos.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user