mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ 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";
|
|
description = "udev rules for the Teensy microcontrollers";
|
|
longDescription = ''
|
|
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;
|
|
license = licenses.unfree; # No license specified.
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
};
|
|
}
|