nixpkgs/pkgs/applications/misc/openrgb/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitLab, qmake, wrapQtAppsHook, libusb1, hidapi, pkg-config, coreutils, mbedtls_2, qtbase, qttools }:
2020-06-17 21:38:28 +00:00
stdenv.mkDerivation rec {
2020-06-17 21:38:28 +00:00
pname = "openrgb";
version = "0.8";
2020-06-17 21:38:28 +00:00
2020-12-07 17:11:07 +00:00
src = fetchFromGitLab {
2020-06-17 21:38:28 +00:00
owner = "CalcProgrammer1";
repo = "OpenRGB";
rev = "release_${version}";
sha256 = "sha256-46dL1D5oVlw6mNuFDCbbrUDmq42yFXV/qFJ1JnPT5/s=";
2020-06-17 21:38:28 +00:00
};
nativeBuildInputs = [ qmake pkg-config wrapQtAppsHook ];
buildInputs = [ libusb1 hidapi mbedtls_2 qtbase qttools ];
2020-06-17 21:38:28 +00:00
postPatch = ''
patchShebangs scripts/build-udev-rules.sh
substituteInPlace scripts/build-udev-rules.sh \
--replace /bin/chmod "${coreutils}/bin/chmod"
2020-12-07 17:11:07 +00:00
'';
2020-06-17 21:38:28 +00:00
doInstallCheck = true;
installCheckPhase = ''
2020-12-07 17:11:07 +00:00
HOME=$TMPDIR $out/bin/openrgb --help > /dev/null
2020-06-17 21:38:28 +00:00
'';
meta = with lib; {
description = "Open source RGB lighting control";
homepage = "https://gitlab.com/CalcProgrammer1/OpenRGB";
maintainers = with maintainers; [ jonringer ];
license = licenses.gpl2Plus;
2020-06-17 21:38:28 +00:00
platforms = platforms.linux;
};
}