2022-05-31 11:37:51 +02:00
|
|
|
{ mkDerivation, lib }:
|
2024-02-05 11:46:52 +01:00
|
|
|
mkDerivation {
|
2022-05-31 11:37:51 +02:00
|
|
|
pname = "blink1-udev-rules";
|
|
|
|
version = "20220531093409";
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/udev/rules.d
|
|
|
|
echo 'ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", TAG+="uaccess"' > $out/lib/udev/rules.d/51-blink1.rules
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "udev rules for blink1";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [
|
|
|
|
{
|
|
|
|
email = "erwin@datarift.nl";
|
|
|
|
github = "eboskma";
|
|
|
|
name = "Erwin Boskma";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
homepage = "https://blink1.thingm.com";
|
|
|
|
};
|
|
|
|
}
|