Remove g810

This commit is contained in:
Dave Gallant
2021-02-28 14:15:38 -05:00
parent dbba14be0e
commit 6eed70811b
8 changed files with 3 additions and 128 deletions

View File

@@ -1,6 +1,5 @@
final: prev: {
g810-led = prev.callPackage ./g810-led { };
lpass = prev.callPackage ./lastpass { };
rfd = prev.callPackage ./rfd { };
srv = prev.callPackage ./srv { };

View File

@@ -1,47 +0,0 @@
{ stdenv, lib, fetchFromGitHub, hidapi, profile ? "/etc/g810-led/profile" }:
stdenv.mkDerivation rec {
pname = "g810-led";
version = "0.4.2";
src = fetchFromGitHub {
owner = "MatMoul";
repo = pname;
rev = "v${version}";
hash = "sha256-FFaOGRLk9wCQ+Xkf/KacXF3rOrvg8xSyeDEwe+K5s/o=";
};
buildInputs = [ hidapi ];
installPhase = ''
runHook preInstall
install -D bin/g810-led $out/bin/g810-led
ln -s \./g810-led $out/bin/g213-led
ln -s \./g810-led $out/bin/g410-led
ln -s \./g810-led $out/bin/g413-led
ln -s \./g810-led $out/bin/g512-led
ln -s \./g810-led $out/bin/g513-led
ln -s \./g810-led $out/bin/g610-led
ln -s \./g810-led $out/bin/g815-led
ln -s \./g810-led $out/bin/g910-led
ln -s \./g810-led $out/bin/gpro-led
substituteInPlace udev/g810-led.rules \
--replace "/usr" $out \
--replace "/etc/g810-led/profile" "${profile}"
install -D udev/g810-led.rules $out/etc/udev/rules.d/90-g810-led.rules
runHook postInstall
'';
meta = with lib; {
description =
"Linux LED controller for Logitech G213, G410, G413, G512, G513, G610, G810, G815, G910 and GPRO Keyboards";
inherit (src.meta) homepage;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ davegallant ];
};
}