mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
171a116a56
ckb-next: 0.5.0 -> 0.6.0
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{ lib, wrapQtAppsHook, fetchFromGitHub, substituteAll, udev, stdenv
|
|
, pkg-config, qtbase, cmake, zlib, kmod, libXdmcp, qttools, qtx11extras, libdbusmenu
|
|
, withPulseaudio ? stdenv.isLinux, libpulseaudio, quazip
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.6.0";
|
|
pname = "ckb-next";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ckb-next";
|
|
repo = "ckb-next";
|
|
rev = "v${version}";
|
|
hash = "sha256-G0cvET3wMIi4FlBmaTkdTyYtcdVGzK4X0C2HYZr43eg=";
|
|
};
|
|
|
|
buildInputs = [
|
|
udev
|
|
qtbase
|
|
zlib
|
|
libXdmcp
|
|
qttools
|
|
qtx11extras
|
|
libdbusmenu
|
|
quazip
|
|
] ++ lib.optional withPulseaudio libpulseaudio;
|
|
|
|
nativeBuildInputs = [
|
|
wrapQtAppsHook
|
|
pkg-config
|
|
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;
|
|
})
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Driver and configuration tool for Corsair keyboards and mice";
|
|
homepage = "https://github.com/ckb-next/ckb-next";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
mainProgram = "ckb-next";
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|