2021-01-25 09:26:54 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, substituteAll, udev
|
2021-04-23 00:56:40 +02:00
|
|
|
, pkg-config, qtbase, cmake, zlib, kmod, libXdmcp, qttools, qtx11extras, libdbusmenu }:
|
2017-01-12 19:25:14 +01:00
|
|
|
|
2019-08-25 02:13:33 +02:00
|
|
|
mkDerivation rec {
|
2021-04-23 00:56:40 +02:00
|
|
|
version = "0.4.4";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ckb-next";
|
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}";
|
2021-04-23 00:56:40 +02:00
|
|
|
sha256 = "1fgvh2hsrm8vqbqq9g45skhyyrhhka4d8ngmyldkldak1fgmrvb7";
|
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
|
2021-04-23 00:56:40 +02:00
|
|
|
libXdmcp
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
libdbusmenu
|
2017-01-12 19:25:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 04:51:22 +01:00
|
|
|
pkg-config
|
2018-05-06 19:58:51 +02:00
|
|
|
cmake
|
2017-01-12 19:25:14 +01:00
|
|
|
];
|
|
|
|
|
2019-08-26 15:02:10 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DINSTALL_DIR_ANIMATIONS=libexec"
|
2019-04-26 13:41:13 +02:00
|
|
|
"-DUDEV_RULE_DIRECTORY=lib/udev/rules.d"
|
|
|
|
"-DFORCE_INIT_SYSTEM=systemd"
|
2020-03-15 03:02:42 +01:00
|
|
|
"-DDISABLE_UPDATER=1"
|
2019-08-26 15:02:10 +02:00
|
|
|
];
|
|
|
|
|
2017-01-12 19:25:14 +01:00
|
|
|
patches = [
|
2018-05-06 19:58:51 +02:00
|
|
|
./install-dirs.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
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-01-12 19:25:14 +01:00
|
|
|
description = "Driver and configuration tool for Corsair keyboards and mice";
|
2020-04-01 03:11:51 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|