2018-07-17 22:11:16 +02:00
|
|
|
{ stdenv, fetchFromGitHub, substituteAll, udev
|
2018-05-06 19:58:51 +02:00
|
|
|
, pkgconfig, qtbase, cmake, zlib, kmod }:
|
2017-01-12 19:25:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-05-06 19:58:51 +02:00
|
|
|
version = "0.3.2";
|
2017-11-24 01:58:46 +01:00
|
|
|
name = "ckb-next-${version}";
|
2017-01-12 19:25:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-01-22 14:12:56 +01:00
|
|
|
owner = "ckb-next";
|
2017-11-24 01:58:46 +01:00
|
|
|
repo = "ckb-next";
|
2017-01-12 19:25:14 +01:00
|
|
|
rev = "v${version}";
|
2018-05-06 19:58:51 +02:00
|
|
|
sha256 = "0ri5n7r1vhsgk6s64abvqcdrs5fmlwprw0rxiwfy0j8a9qcic1dr";
|
2017-01-12 19:25:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-07-17 22:11:16 +02:00
|
|
|
udev
|
2017-01-12 19:25:14 +01:00
|
|
|
qtbase
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
2018-05-06 19:58:51 +02:00
|
|
|
cmake
|
2017-01-12 19:25:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
2018-05-06 19:58:51 +02:00
|
|
|
./install-dirs.patch
|
|
|
|
./systemd-service.patch
|
2018-01-09 19:58:25 +01:00
|
|
|
(substituteAll {
|
2018-05-06 20:49:51 +02:00
|
|
|
name = "ckb-next-modprobe.patch";
|
|
|
|
src = ./modprobe.patch;
|
2018-01-09 19:58:25 +01:00
|
|
|
inherit kmod;
|
|
|
|
})
|
2017-01-12 19:25:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Driver and configuration tool for Corsair keyboards and mice";
|
2018-01-22 14:12:56 +01:00
|
|
|
homepage = https://github.com/ckb-next/ckb-next;
|
2017-01-12 19:25:14 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kierdavis ];
|
|
|
|
};
|
|
|
|
}
|