nixpkgs/pkgs/tools/misc/ckb-next/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, mkDerivation, fetchFromGitHub, substituteAll, udev, stdenv
, pkg-config, qtbase, cmake, zlib, kmod, libXdmcp, qttools, qtx11extras, libdbusmenu
, withPulseaudio ? stdenv.isLinux, libpulseaudio
}:
2019-08-25 00:13:33 +00:00
mkDerivation rec {
2022-06-25 07:29:34 +00:00
version = "0.5.0";
pname = "ckb-next";
src = fetchFromGitHub {
2018-01-22 13:12:56 +00:00
owner = "ckb-next";
repo = "ckb-next";
rev = "v${version}";
2022-06-25 07:29:34 +00:00
sha256 = "sha256-yR1myagAqavAR/7lPdufcrJpPmXW7r4N4pxTMF6NbuE=";
};
buildInputs = [
udev
qtbase
zlib
2021-04-22 22:56:40 +00:00
libXdmcp
qttools
qtx11extras
libdbusmenu
] ++ lib.optional withPulseaudio libpulseaudio;
nativeBuildInputs = [
2021-01-17 03:51:22 +00:00
pkg-config
cmake
];
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
];
patches = [
./install-dirs.patch
2018-01-09 18:58:25 +00:00
(substituteAll {
name = "ckb-next-modprobe.patch";
src = ./modprobe.patch;
2018-01-09 18:58:25 +00:00
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;
2022-10-04 17:06:48 +00:00
maintainers = with maintainers; [ ];
};
}