1 { lib, wrapQtAppsHook, fetchFromGitHub, substituteAll, udev, stdenv
2 , pkg-config, qtbase, cmake, zlib, kmod, libXdmcp, qttools, qtx11extras, libdbusmenu, gnused
3 , withPulseaudio ? stdenv.hostPlatform.isLinux, libpulseaudio, quazip
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 hash = "sha256-G0cvET3wMIi4FlBmaTkdTyYtcdVGzK4X0C2HYZr43eg=";
26 ] ++ lib.optional withPulseaudio libpulseaudio;
35 "-DINSTALL_DIR_ANIMATIONS=libexec"
36 "-DUDEV_RULE_DIRECTORY=lib/udev/rules.d"
37 "-DFORCE_INIT_SYSTEM=systemd"
44 name = "ckb-next-modprobe.patch";
45 src = ./modprobe.patch;
51 substituteInPlace "$out/lib/udev/rules.d/99-ckb-next-daemon.rules" \
52 --replace-fail "/usr/bin/env sed" "${lib.getExe gnused}"
56 description = "Driver and configuration tool for Corsair keyboards and mice";
57 homepage = "https://github.com/ckb-next/ckb-next";
58 license = licenses.gpl2Only;
59 platforms = platforms.linux;
60 mainProgram = "ckb-next";