From f88eb92ff9cee37efada430c33311673814c8360 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Tue, 18 Apr 2023 15:05:35 +1200 Subject: [PATCH] platformio: Don't link udev rules into a subdirectory This causes collisions when NixOS is configured like ``` nix { pkgs, ... }: { services.udev.packages = [ pkgs.platformio ]; } ``` and would also cause a regression having to add the subirectory to the udev packages path: ``` nix { pkgs, ... }: { services.udev.packages = [ (pkgs.platformio-core.udev + "/99-platformio-udev.rules") ]; } ``` --- pkgs/development/embedded/platformio/core.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/embedded/platformio/core.nix b/pkgs/development/embedded/platformio/core.nix index 81ad2354c99..e02e76e3ccc 100644 --- a/pkgs/development/embedded/platformio/core.nix +++ b/pkgs/development/embedded/platformio/core.nix @@ -73,7 +73,7 @@ with python3.pkgs; buildPythonApplication rec { # Install udev rules into a separate output so all of platformio-core is not a dependency if # you want to use the udev rules on NixOS but not install platformio in your system packages. postInstall = '' - mkdir -p $udev/lib/udev/rules.d/99-platformio-udev.rules + mkdir -p $udev/lib/udev/rules.d cp platformio/assets/system/99-platformio-udev.rules $udev/lib/udev/rules.d/99-platformio-udev.rules '';