3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #96831 from SCOTT-HAMILTON/numworks

numworks: init udev rules and module
This commit is contained in:
Daniël de Kok 2020-09-02 20:03:02 +02:00 committed by GitHub
commit f145223340
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,2 @@
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="a291", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="0483", ATTR{idProduct}=="df11", TAG+="uaccess"

View 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;
};
}

View file

@ -0,0 +1,3 @@
#!/bin/sh
wget -O 50-numworks-calculator.rules "https://workshop.numworks.com/files/drivers/linux/50-numworks-calculator.rules"

View file

@ -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 { };