1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/tools/misc/ckb/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, substituteAll, udev
, pkgconfig, qtbase, qmake, zlib, kmod }:
stdenv.mkDerivation rec {
2018-01-22 13:12:56 +00:00
version = "0.2.9";
name = "ckb-next-${version}";
src = fetchFromGitHub {
2018-01-22 13:12:56 +00:00
owner = "ckb-next";
repo = "ckb-next";
rev = "v${version}";
2018-01-22 13:12:56 +00:00
sha256 = "0hl41znyhp3k5l9rcgz0gig36gsg95ivrs1dyngv45q9jkr6fchm";
};
buildInputs = [
udev
qtbase
zlib
];
nativeBuildInputs = [
pkgconfig
2017-06-02 16:40:19 +01:00
qmake
];
patches = [
./ckb-animations-location.patch
2018-01-09 18:58:25 +00:00
(substituteAll {
name = "ckb-modprobe.patch";
src = ./ckb-modprobe.patch;
inherit kmod;
})
];
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";
2018-01-22 13:12:56 +00:00
homepage = https://github.com/ckb-next/ckb-next;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ kierdavis ];
};
}