2021-11-13 21:58:09 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, substituteAll, udev, stdenv
|
|
|
|
, pkg-config, qtbase, cmake, zlib, kmod, libXdmcp, qttools, qtx11extras, libdbusmenu
|
|
|
|
, withPulseaudio ? stdenv.isLinux, libpulseaudio
|
|
|
|
}:
|
2017-01-12 18:25:14 +00:00
|
|
|
|
2019-08-25 00:13:33 +00:00
|
|
|
mkDerivation rec {
|
2022-06-25 07:29:34 +00:00
|
|
|
version = "0.5.0";
|
2019-08-15 12:41:18 +00: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}";
|
2022-06-25 07:29:34 +00:00
|
|
|
sha256 = "sha256-yR1myagAqavAR/7lPdufcrJpPmXW7r4N4pxTMF6NbuE=";
|
2017-01-12 18:25:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-07-17 20:11:16 +00:00
|
|
|
udev
|
2017-01-12 18:25:14 +00:00
|
|
|
qtbase
|
|
|
|
zlib
|
2021-04-22 22:56:40 +00:00
|
|
|
libXdmcp
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
libdbusmenu
|
2021-11-13 21:58:09 +00:00
|
|
|
] ++ lib.optional withPulseaudio libpulseaudio;
|
2017-01-12 18:25:14 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-17 03:51:22 +00:00
|
|
|
pkg-config
|
2018-05-06 17:58:51 +00:00
|
|
|
cmake
|
2017-01-12 18:25:14 +00:00
|
|
|
];
|
|
|
|
|
2019-08-26 13:02:10 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DINSTALL_DIR_ANIMATIONS=libexec"
|
2019-04-26 11:41:13 +00: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 13:02:10 +00:00
|
|
|
];
|
|
|
|
|
2017-01-12 18:25:14 +00:00
|
|
|
patches = [
|
2018-05-06 17:58:51 +00:00
|
|
|
./install-dirs.patch
|
2018-01-09 18:58:25 +00:00
|
|
|
(substituteAll {
|
2018-05-06 18:49:51 +00: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
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-01-12 18:25:14 +00:00
|
|
|
description = "Driver and configuration tool for Corsair keyboards and mice";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/ckb-next/ckb-next";
|
2017-01-12 18:25:14 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2022-10-04 17:06:48 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-01-12 18:25:14 +00:00
|
|
|
};
|
|
|
|
}
|