2022-07-14 12:49:19 +00:00
|
|
|
{ lib, stdenv, coreutils }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "teensy-udev-rules";
|
|
|
|
version = "2022-05-15";
|
|
|
|
|
|
|
|
# Source: https://www.pjrc.com/teensy/00-teensy.rules
|
|
|
|
src = ./teensy.rules;
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
runtimeDeps = [ coreutils ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -D $src $out/etc/udev/rules.d/70-teensy.rules
|
|
|
|
substituteInPlace $out/etc/udev/rules.d/70-teensy.rules \
|
|
|
|
--replace "/bin/stty" "${coreutils}/bin/stty"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://www.pjrc.com/teensy/00-teensy.rules";
|
2024-01-02 11:29:13 +00:00
|
|
|
description = "udev rules for the Teensy microcontrollers";
|
|
|
|
longDescription = ''
|
2022-07-14 12:49:19 +00:00
|
|
|
udev rules that give non-root users permission to communicate with the
|
|
|
|
Teensy family of microcontrolers.
|
|
|
|
|
|
|
|
ModemManager (part of NetworkManager) can interfere with USB Serial
|
|
|
|
devices, which includes the Teensy. See comments in the .rules file (or
|
|
|
|
this package's homepage) for possible workarounds.
|
|
|
|
'';
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.unfree; # No license specified.
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
|
|
};
|
|
|
|
}
|