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

49 lines
1 KiB
Nix
Raw Normal View History

2019-08-25 02:13:33 +02:00
{ stdenv, mkDerivation, fetchFromGitHub, substituteAll, udev
, pkgconfig, qtbase, cmake, zlib, kmod }:
2019-08-25 02:13:33 +02:00
mkDerivation rec {
2019-04-26 13:41:13 +02:00
version = "0.4.2";
pname = "ckb-next";
src = fetchFromGitHub {
2018-01-22 14:12:56 +01:00
owner = "ckb-next";
repo = "ckb-next";
rev = "v${version}";
2019-04-26 13:41:13 +02:00
sha256 = "1mkx1psw5xnpscdfik1kpzsnfhhkn3571i7acr9gxyjr27sckplc";
};
buildInputs = [
udev
qtbase
zlib
];
nativeBuildInputs = [
pkgconfig
cmake
];
2019-08-26 15:02:10 +02:00
cmakeFlags = [
"-DINSTALL_DIR_ANIMATIONS=libexec"
2019-04-26 13:41:13 +02:00
"-DUDEV_RULE_DIRECTORY=lib/udev/rules.d"
"-DFORCE_INIT_SYSTEM=systemd"
2019-08-26 15:02:10 +02:00
];
patches = [
./install-dirs.patch
2018-01-09 19:58:25 +01:00
(substituteAll {
name = "ckb-next-modprobe.patch";
src = ./modprobe.patch;
2018-01-09 19:58:25 +01:00
inherit kmod;
})
];
meta = with stdenv.lib; {
description = "Driver and configuration tool for Corsair keyboards and mice";
2018-01-22 14:12:56 +01:00
homepage = https://github.com/ckb-next/ckb-next;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ kierdavis ];
};
}