diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-06-17 14:38:28 -0700 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-06-19 15:25:11 +0000 |
commit | 8745c7da4b4f4599690aa69014c5e56f9af8a783 (patch) | |
tree | d2bca64120cacd47aec8f3e3fd07a836d68459de /pkgs/applications/misc/openrgb | |
parent | 4e69b0a89934d3516b72ca2175fabe85f6f540d7 (diff) |
openrgb: init at 0.2
Diffstat (limited to 'pkgs/applications/misc/openrgb')
-rw-r--r-- | pkgs/applications/misc/openrgb/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/misc/openrgb/default.nix b/pkgs/applications/misc/openrgb/default.nix new file mode 100644 index 0000000000000..77f6513b0ca2a --- /dev/null +++ b/pkgs/applications/misc/openrgb/default.nix @@ -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; + }; +} |