2020-08-09 01:57:13 +01:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, qmake, libusb1, hidapi, pkg-config }:
|
2020-06-17 22:38:28 +01:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "openrgb";
|
2020-08-09 01:57:13 +01:00
|
|
|
version = "0.3";
|
2020-06-17 22:38:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CalcProgrammer1";
|
|
|
|
repo = "OpenRGB";
|
|
|
|
rev = "release_${version}";
|
2020-08-09 01:57:13 +01:00
|
|
|
sha256 = "1931aisdahjr99d4qqk824ib4x19mvhqgqmkm3j6fc5zd2hnw87m";
|
2020-06-17 22:38:28 +01:00
|
|
|
};
|
|
|
|
|
2020-08-09 01:57:13 +01:00
|
|
|
nativeBuildInputs = [ qmake pkg-config ];
|
2020-06-17 22:38:28 +01:00
|
|
|
buildInputs = [ libusb1 hidapi ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp OpenRGB $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/OpenRGB --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Open source RGB lighting control";
|
|
|
|
homepage = "https://gitlab.com/CalcProgrammer1/OpenRGB";
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|