2022-09-27 20:39:25 +02:00
|
|
|
{ lib, mkDerivation, ... }:
|
|
|
|
let
|
|
|
|
pname = "solo2-udev-rules";
|
|
|
|
version = "20220924";
|
|
|
|
in
|
|
|
|
mkDerivation {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2022-10-07 20:42:59 +02:00
|
|
|
mkdir -p $out/lib/udev/rules.d
|
|
|
|
echo 'SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="b000", TAG+="uaccess"' >> $out/lib/udev/rules.d/70-solo2.rules
|
|
|
|
'';
|
|
|
|
|
2022-09-27 20:39:25 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "udev rules for the solo2 key";
|
|
|
|
homepage = "https://solokeys.com";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [{
|
|
|
|
email = "erwin@datarift.nl";
|
|
|
|
github = "eboskma";
|
|
|
|
name = "Erwin Boskma";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
}
|