git.iko.soy/typeable/nixpkgs
on master help sign in
platformio: Patch warning about missing udev rules

This adds the sentence "On NixOS add the platformio package to services.udev.packages" to the warning.

commit5ed47f34e429a6d6f62867729b9f033e8fca12f2 authorFabian Geiselhart <me@f4814n.de> dateMon 29 Jun 2020, 19:45 (6 years ago) parentecb560b
2 files changed+15
pkgs/development/arduino/platformio/core.nix+1 pkgs/development/arduino/platformio/missing-udev-rules-nixos.patch+14
pkgs/development/arduino/platformio/core.nix+1
@@ -82,6 +82,7 @@ in buildPythonApplication rec {
8282 patches = [
8383 ./fix-searchpath.patch
8484 ./use-local-spdx-license-list.patch
85+ ./missing-udev-rules-nixos.patch
8586 ];
8687
8788 postPatch = ''
pkgs/development/arduino/platformio/missing-udev-rules-nixos.patchnew file+14
@@ -0,0 +1,14 @@
1+diff --git a/platformio/exception.py b/platformio/exception.py
2+index d291ad7f..4761a35b 100644
3+--- a/platformio/exception.py
4++++ b/platformio/exception.py
5+@@ -195,7 +195,8 @@ class MissedUdevRules(InvalidUdevRules):
6+
7+ MESSAGE = (
8+ "Warning! Please install `99-platformio-udev.rules`. \nMode details: "
9+- "https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules"
10++ "https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules\n"
11++ "On NixOS add the platformio package to services.udev.packages"
12+ )
13+
14+