nixpkgs/pkgs/development/embedded/platformio/missing-udev-rules-nixos.patch
adisbladis 8d8dd6fdbf platformio: make multi-output
Currently udev rules symlinks against platformio sources, pulling in the platformio source tree into the runtime closure.
Previous to platformio-core being exposed separately from platformio this also meant that you had no ergonomic way to avoid platformio in the system closure, even though you only wanted the udev rules.

We can avoid this by making platformio-core multi output, making it trivial to depend only on the udev rules.
2023-04-01 19:34:05 +13:00

11 lines
484 B
Diff

diff --git a/platformio/exception.py b/platformio/exception.py
index ef1d3bab..445174fc 100644
--- a/platformio/exception.py
+++ b/platformio/exception.py
@@ -57,6 +57,7 @@ class MissedUdevRules(InvalidUdevRules):
MESSAGE = (
"Warning! Please install `99-platformio-udev.rules`. \nMore details: "
"https://docs.platformio.org/en/latest/core/installation/udev-rules.html"
+ "On NixOS add the platformio-core.udev package to services.udev.packages"
)