2018-01-09 19:58:25 +01:00
|
|
|
{ stdenv, fetchFromGitHub, substituteAll, libudev, pkgconfig, qtbase, qmake, zlib, kmod }:
|
2017-01-12 19:25:14 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-01-22 14:12:56 +01:00
|
|
|
version = "0.2.9";
|
2017-11-24 01:58:46 +01:00
|
|
|
name = "ckb-next-${version}";
|
2017-01-12 19:25:14 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-01-22 14:12:56 +01:00
|
|
|
owner = "ckb-next";
|
2017-11-24 01:58:46 +01:00
|
|
|
repo = "ckb-next";
|
2017-01-12 19:25:14 +01:00
|
|
|
rev = "v${version}";
|
2018-01-22 14:12:56 +01:00
|
|
|
sha256 = "0hl41znyhp3k5l9rcgz0gig36gsg95ivrs1dyngv45q9jkr6fchm";
|
2017-01-12 19:25:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libudev
|
|
|
|
qtbase
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
2017-06-02 17:40:19 +02:00
|
|
|
qmake
|
2017-01-12 19:25:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./ckb-animations-location.patch
|
2018-01-09 19:58:25 +01:00
|
|
|
(substituteAll {
|
|
|
|
name = "ckb-modprobe.patch";
|
|
|
|
src = ./ckb-modprobe.patch;
|
|
|
|
inherit kmod;
|
|
|
|
})
|
2017-01-12 19:25:14 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-06-05 20:08:07 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
2017-01-12 19:25:14 +01:00
|
|
|
install -D --mode 0755 --target-directory $out/bin bin/ckb-daemon bin/ckb
|
|
|
|
install -D --mode 0755 --target-directory $out/libexec/ckb-animations bin/ckb-animations/*
|
2017-06-05 20:08:07 +02:00
|
|
|
|
|
|
|
runHook postInstall
|
2017-01-12 19:25:14 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
2017-01-12 19:25:14 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kierdavis ];
|
|
|
|
};
|
|
|
|
}
|