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

48 lines
1,021 B
Nix
Raw Normal View History

2017-06-02 15:40:19 +00:00
{ stdenv, fetchFromGitHub, libudev, pkgconfig, qtbase, qmake, zlib }:
stdenv.mkDerivation rec {
version = "0.2.6";
name = "ckb-${version}";
src = fetchFromGitHub {
owner = "ccMSC";
repo = "ckb";
rev = "v${version}";
sha256 = "04h50qdzsbi77mj62jghr52i35vxvmhnvsb7pdfdq95ryry8bnwm";
};
buildInputs = [
libudev
qtbase
zlib
];
nativeBuildInputs = [
pkgconfig
2017-06-02 15:40:19 +00:00
qmake
];
patches = [
./ckb-animations-location.patch
];
doCheck = false;
installPhase = ''
runHook preInstall
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/*
runHook postInstall
'';
meta = with stdenv.lib; {
description = "Driver and configuration tool for Corsair keyboards and mice";
homepage = https://github.com/ccMSC/ckb;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ kierdavis ];
};
}