mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 10:31:36 +00:00
ea7a8bf2d9
ckb is a driver for Corsair keyboards/mice. It also contains a graphical tool for configuring their LED backlight settings. The driver is implemented as a userland daemon. A NixOS module is included that runs this as a systemd service.
44 lines
980 B
Nix
44 lines
980 B
Nix
{ stdenv, fetchFromGitHub, libudev, pkgconfig, qtbase, qmakeHook, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.2.6";
|
|
name = "ckb-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ccMSC";
|
|
repo = "ckb";
|
|
rev = "v${version}";
|
|
sha256 = "04h50qdzsbi77mj62jghr52i35vxvmhnvsb7pdfdq95ryry8bnwm";
|
|
};
|
|
|
|
buildInputs = [
|
|
libudev
|
|
qtbase
|
|
zlib
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkgconfig
|
|
qmakeHook
|
|
];
|
|
|
|
patches = [
|
|
./ckb-animations-location.patch
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
installPhase = ''
|
|
install -D --mode 0755 --target-directory $out/bin bin/ckb-daemon bin/ckb
|
|
install -D --mode 0755 --target-directory $out/libexec/ckb-animations bin/ckb-animations/*
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Driver and configuration tool for Corsair keyboards and mice";
|
|
homepage = https://github.com/ccMSC/ckb;
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ kierdavis ];
|
|
};
|
|
}
|