2017-06-02 16:40:19 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libudev, pkgconfig, qtbase, qmake, zlib }:
|
2017-01-12 18:25:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-24 00:58:46 +00:00
|
|
|
version = "0.2.8";
|
|
|
|
name = "ckb-next-${version}";
|
2017-01-12 18:25:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-11-24 00:58:46 +00:00
|
|
|
owner = "mattanger";
|
|
|
|
repo = "ckb-next";
|
2017-01-12 18:25:14 +00:00
|
|
|
rev = "v${version}";
|
2017-11-24 00:58:46 +00:00
|
|
|
sha256 = "0b3h1d54mdyfcx46zvsd7dfqf2656h4jjkiw044170gnfdzxjb3w";
|
2017-01-12 18:25:14 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libudev
|
|
|
|
qtbase
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
2017-06-02 16:40:19 +01:00
|
|
|
qmake
|
2017-01-12 18:25:14 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./ckb-animations-location.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-06-05 19:08:07 +01:00
|
|
|
runHook preInstall
|
|
|
|
|
2017-01-12 18:25:14 +00: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 19:08:07 +01:00
|
|
|
|
|
|
|
runHook postInstall
|
2017-01-12 18:25:14 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Driver and configuration tool for Corsair keyboards and mice";
|
2017-11-24 00:58:46 +00:00
|
|
|
homepage = https://github.com/mattanger/ckb-next;
|
2017-01-12 18:25:14 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ kierdavis ];
|
|
|
|
};
|
|
|
|
}
|