2021-12-06 16:07:01 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, substituteAll, udev, stdenv
|
|
|
|
, pkg-config, qtbase, cmake, zlib, kmod, libXdmcp, qttools, qtx11extras, libdbusmenu
|
|
|
|
, withPulseaudio ? stdenv.isLinux, libpulseaudio
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
2021-04-25 03:57:28 +00:00
|
|
|
version = "0.4.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "ckb-next";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ckb-next";
|
|
|
|
repo = "ckb-next";
|
|
|
|
rev = "v${version}";
|
2021-04-25 03:57:28 +00:00
|
|
|
sha256 = "1fgvh2hsrm8vqbqq9g45skhyyrhhka4d8ngmyldkldak1fgmrvb7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
udev
|
|
|
|
qtbase
|
|
|
|
zlib
|
2021-04-25 03:57:28 +00:00
|
|
|
libXdmcp
|
|
|
|
qttools
|
|
|
|
qtx11extras
|
|
|
|
libdbusmenu
|
2021-12-06 16:07:01 +00:00
|
|
|
] ++ lib.optional withPulseaudio libpulseaudio;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DINSTALL_DIR_ANIMATIONS=libexec"
|
|
|
|
"-DUDEV_RULE_DIRECTORY=lib/udev/rules.d"
|
|
|
|
"-DFORCE_INIT_SYSTEM=systemd"
|
|
|
|
"-DDISABLE_UPDATER=1"
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./install-dirs.patch
|
|
|
|
(substituteAll {
|
|
|
|
name = "ckb-next-modprobe.patch";
|
|
|
|
src = ./modprobe.patch;
|
|
|
|
inherit kmod;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Driver and configuration tool for Corsair keyboards and mice";
|
|
|
|
homepage = "https://github.com/ckb-next/ckb-next";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kierdavis ];
|
|
|
|
};
|
|
|
|
}
|