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

48 lines
983 B
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 {
version = "0.3.2";
pname = "ckb-next";
src = fetchFromGitHub {
2018-01-22 14:12:56 +01:00
owner = "ckb-next";
repo = "ckb-next";
rev = "v${version}";
sha256 = "0ri5n7r1vhsgk6s64abvqcdrs5fmlwprw0rxiwfy0j8a9qcic1dr";
};
buildInputs = [
udev
qtbase
zlib
];
nativeBuildInputs = [
pkgconfig
cmake
];
2019-08-26 15:02:10 +02:00
cmakeFlags = [
"-DINSTALL_DIR_ANIMATIONS=libexec"
];
patches = [
./install-dirs.patch
./systemd-service.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 ];
};
}