depot/third_party/nixpkgs/pkgs/applications/misc/openrgb/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

36 lines
864 B
Nix

{ mkDerivation, lib, fetchFromGitHub, qmake, libusb1, hidapi, pkg-config }:
mkDerivation rec {
pname = "openrgb";
version = "0.3";
src = fetchFromGitHub {
owner = "CalcProgrammer1";
repo = "OpenRGB";
rev = "release_${version}";
sha256 = "1931aisdahjr99d4qqk824ib4x19mvhqgqmkm3j6fc5zd2hnw87m";
};
nativeBuildInputs = [ qmake pkg-config ];
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;
};
}