mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
openrgb: init at 0.2
This commit is contained in:
parent
4e69b0a899
commit
8745c7da4b
36
pkgs/applications/misc/openrgb/default.nix
Normal file
36
pkgs/applications/misc/openrgb/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ mkDerivation, lib, fetchFromGitHub, qmake, libusb1, hidapi }:
|
||||||
|
|
||||||
|
mkDerivation rec {
|
||||||
|
pname = "openrgb";
|
||||||
|
version = "0.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "CalcProgrammer1";
|
||||||
|
repo = "OpenRGB";
|
||||||
|
rev = "release_${version}";
|
||||||
|
sha256 = "0b1mkp4ca4gdzk020kp6dkd3i9a13h4ikrn3417zscsvv5y9kv0s";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ qmake ];
|
||||||
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -5696,6 +5696,8 @@ in
|
||||||
|
|
||||||
openresolv = callPackage ../tools/networking/openresolv { };
|
openresolv = callPackage ../tools/networking/openresolv { };
|
||||||
|
|
||||||
|
openrgb = libsForQt5.callPackage ../applications/misc/openrgb { };
|
||||||
|
|
||||||
opensc = callPackage ../tools/security/opensc {
|
opensc = callPackage ../tools/security/opensc {
|
||||||
inherit (darwin.apple_sdk.frameworks) Carbon PCSC;
|
inherit (darwin.apple_sdk.frameworks) Carbon PCSC;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue