Skip to content

Commit

Permalink
Merge pull request #96831 from SCOTT-HAMILTON/numworks
Browse files Browse the repository at this point in the history
numworks: init udev rules and module
  • Loading branch information
danieldk authored Sep 2, 2020
2 parents b2679e8 + e5bb747 commit f145223
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 changes: 21 additions & 0 deletions pkgs/os-specific/linux/numworks-udev-rules/default.nix
Original file line number Diff line number Diff line change
@@ -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 changes: 3 additions & 0 deletions pkgs/os-specific/linux/numworks-udev-rules/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

wget -O 50-numworks-calculator.rules "https://workshop.numworks.com/files/drivers/linux/50-numworks-calculator.rules"
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2160,6 +2160,8 @@ in

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

ipvsadm = callPackage ../os-specific/linux/ipvsadm { };
Expand Down

0 comments on commit f145223

Please sign in to comment.