forked from mirrors/nixpkgs
Merge pull request #96831 from SCOTT-HAMILTON/numworks
numworks: init udev rules and module
This commit is contained in:
commit
f145223340
|
@ -0,0 +1,2 @@
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="a291", TAG+="uaccess"
|
||||||
|
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="df11", TAG+="uaccess"
|
21
pkgs/os-specific/linux/numworks-udev-rules/default.nix
Normal file
21
pkgs/os-specific/linux/numworks-udev-rules/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "numworks-udev-rules";
|
||||||
|
version = "unstable-2020-08-31";
|
||||||
|
|
||||||
|
udevRules = ./50-numworks-calculator.rules;
|
||||||
|
dontUnpack = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dm 644 "${udevRules}" "$out/lib/udev/rules.d/50-numworks-calculator.rules"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Udev rules for Numworks calculators";
|
||||||
|
homepage = "https://numworks.com";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ shamilton ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
3
pkgs/os-specific/linux/numworks-udev-rules/update.sh
Executable file
3
pkgs/os-specific/linux/numworks-udev-rules/update.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
wget -O 50-numworks-calculator.rules "https://workshop.numworks.com/files/drivers/linux/50-numworks-calculator.rules"
|
|
@ -2160,6 +2160,8 @@ in
|
||||||
|
|
||||||
numatop = callPackage ../os-specific/linux/numatop { };
|
numatop = callPackage ../os-specific/linux/numatop { };
|
||||||
|
|
||||||
|
numworks-udev-rules = callPackage ../os-specific/linux/numworks-udev-rules { };
|
||||||
|
|
||||||
iio-sensor-proxy = callPackage ../os-specific/linux/iio-sensor-proxy { };
|
iio-sensor-proxy = callPackage ../os-specific/linux/iio-sensor-proxy { };
|
||||||
|
|
||||||
ipvsadm = callPackage ../os-specific/linux/ipvsadm { };
|
ipvsadm = callPackage ../os-specific/linux/ipvsadm { };
|
||||||
|
|
Loading…
Reference in a new issue