From 54ea3c518b55b79ad7e893cb40c0c4278151c606 Mon Sep 17 00:00:00 2001 From: mingmingrr <12855406+mingmingrr@users.noreply.github.com> Date: Sat, 4 Nov 2023 20:47:15 -0400 Subject: [PATCH] picotool: add udev rules --- pkgs/development/tools/picotool/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/tools/picotool/default.nix b/pkgs/development/tools/picotool/default.nix index 0f4300fc67ce..03d3d440c297 100644 --- a/pkgs/development/tools/picotool/default.nix +++ b/pkgs/development/tools/picotool/default.nix @@ -15,6 +15,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkg-config ]; cmakeFlags = [ "-DPICO_SDK_PATH=${pico-sdk}/lib/pico-sdk" ]; + postInstall = '' + install -Dm444 ../udev/99-picotool.rules -t $out/etc/udev/rules.d + ''; + meta = with lib; { homepage = "https://github.com/raspberrypi/picotool"; description = "Tool for interacting with a RP2040 device in BOOTSEL mode, or with a RP2040 binary";