2019-08-25 01:13:33 +01:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, substituteAll, udev
|
2018-05-06 18:58:51 +01:00
|
|
|
, pkgconfig, qtbase, cmake, zlib, kmod }:
|
2017-01-12 18:25:14 +00:00
|
|
|
|
2019-08-25 01:13:33 +01:00
|
|
|
mkDerivation rec {
|
2019-04-26 12:41:13 +01:00
|
|
|
version = "0.4.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ckb-next";
|
2017-01-12 18:25:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-01-22 13:12:56 +00:00
|
|
|
owner = "ckb-next";
|
2017-11-24 00:58:46 +00:00
|
|
|
repo = "ckb-next";
|
2017-01-12 18:25:14 +00:00
|
|
|
rev = "v${version}";
|
2019-04-26 12:41:13 +01:00
|
|
|
sha256 = "1mkx1psw5xnpscdfik1kpzsnfhhkn3571i7acr9gxyjr27sckplc";
|
2017-01-12 18:25:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-07-17 21:11:16 +01:00
|
|
|
udev
|
2017-01-12 18:25:14 +00:00
|
|
|
qtbase
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
2018-05-06 18:58:51 +01:00
|
|
|
cmake
|
2017-01-12 18:25:14 +00:00
|
|
|
];
|
|
|
|
|
2019-08-26 14:02:10 +01:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DINSTALL_DIR_ANIMATIONS=libexec"
|
2019-04-26 12:41:13 +01:00
|
|
|
"-DUDEV_RULE_DIRECTORY=lib/udev/rules.d"
|
|
|
|
"-DFORCE_INIT_SYSTEM=systemd"
|
2020-03-15 02:02:42 +00:00
|
|
|
"-DDISABLE_UPDATER=1"
|
2019-08-26 14:02:10 +01:00
|
|
|
];
|
|
|
|
|
2017-01-12 18:25:14 +00:00
|
|
|
patches = [
|
2018-05-06 18:58:51 +01:00
|
|
|
./install-dirs.patch
|
2018-01-09 18:58:25 +00:00
|
|
|
(substituteAll {
|
2018-05-06 19:49:51 +01:00
|
|
|
name = "ckb-next-modprobe.patch";
|
|
|
|
src = ./modprobe.patch;
|
2018-01-09 18:58:25 +00:00
|
|
|
inherit kmod;
|
|
|
|
})
|
2017-01-12 18:25:14 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Driver and configuration tool for Corsair keyboards and mice";
|
2018-01-22 13:12:56 +00:00
|
|
|
homepage = https://github.com/ckb-next/ckb-next;
|
2017-01-12 18:25:14 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kierdavis ];
|
|
|
|
};
|
|
|
|
}
|