linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / misc / ckb-next / default.nix
blob9c6909d445d99eb4543368a8186c528c03b13198
1 { lib, mkDerivation, fetchFromGitHub, substituteAll, udev
2 , pkg-config, qtbase, cmake, zlib, kmod }:
4 mkDerivation rec {
5   version = "0.4.2";
6   pname = "ckb-next";
8   src = fetchFromGitHub {
9     owner = "ckb-next";
10     repo = "ckb-next";
11     rev = "v${version}";
12     sha256 = "1mkx1psw5xnpscdfik1kpzsnfhhkn3571i7acr9gxyjr27sckplc";
13   };
15   buildInputs = [
16     udev
17     qtbase
18     zlib
19   ];
21   nativeBuildInputs = [
22     pkg-config
23     cmake
24   ];
26   cmakeFlags = [
27     "-DINSTALL_DIR_ANIMATIONS=libexec"
28     "-DUDEV_RULE_DIRECTORY=lib/udev/rules.d"
29     "-DFORCE_INIT_SYSTEM=systemd"
30     "-DDISABLE_UPDATER=1"
31   ];
33   patches = [
34     ./install-dirs.patch
35     (substituteAll {
36       name = "ckb-next-modprobe.patch";
37       src = ./modprobe.patch;
38       inherit kmod;
39     })
40   ];
42   meta = with lib; {
43     description = "Driver and configuration tool for Corsair keyboards and mice";
44     homepage = "https://github.com/ckb-next/ckb-next";
45     license = licenses.gpl2;
46     platforms = platforms.linux;
47     maintainers = with maintainers; [ kierdavis ];
48   };