nixos-config/modules/base/picotool/default.nix

30 lines
829 B
Nix
Raw Normal View History

2022-06-29 08:30:48 +02:00
{ mkDerivation, lib }:
mkDerivation {
pname = "picotool-udev-rules";
version = "20220628194715";
src = ./.;
phases = [ "installPhase" ];
installPhase = ''
2022-07-02 19:08:50 +02:00
mkdir -p $out/lib/udev/rules.d
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="0003", TAG+="uaccess"' > $out/lib/udev/rules.d/70-picotool.rules
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000a", TAG+="uaccess"' >> $out/lib/udev/rules.d/70-picotool.rules
'';
2022-06-29 08:30:48 +02:00
meta = with lib; {
description = "udev rules for Raspberry Pi picotool";
license = licenses.mit;
2024-02-05 11:46:52 +01:00
maintainers = [
{
email = "erwin@datarift.nl";
github = "eboskma";
name = "Erwin Boskma";
}
];
2022-06-29 08:30:48 +02:00
platforms = platforms.linux;
homepage = "https://github.com/raspberrypi/picotool";
};
}