openrgb: 0.4 -> 0.5
This commit is contained in:
parent
42cfd52182
commit
07aee7512c
@ -1,35 +1,32 @@
|
|||||||
{ mkDerivation, lib, fetchFromGitHub, qmake, libusb1, hidapi, pkg-config, fetchpatch }:
|
{ lib, mkDerivation, fetchFromGitLab, qmake, libusb1, hidapi, pkg-config }:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "openrgb";
|
pname = "openrgb";
|
||||||
version = "0.4";
|
version = "0.5";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitLab {
|
||||||
owner = "CalcProgrammer1";
|
owner = "CalcProgrammer1";
|
||||||
repo = "OpenRGB";
|
repo = "OpenRGB";
|
||||||
rev = "release_${version}";
|
rev = "release_${version}";
|
||||||
sha256 = "sha256-tHrRG2Zx7NYqn+WPiRpAlWA/QmxuAYidENanTkC1XVw";
|
sha256 = "001x2ycfmlb9s21sp91aw5gxizcn6kzm8x7bvkps4b1iq0ap5fzv";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake pkg-config ];
|
nativeBuildInputs = [ qmake pkg-config ];
|
||||||
buildInputs = [ libusb1 hidapi ];
|
buildInputs = [ libusb1 hidapi ];
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Make build SOURCE_DATE_EPOCH aware, merged in master
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://gitlab.com/CalcProgrammer1/OpenRGB/-/commit/f1b7b8ba900db58a1119d8d3e21c1c79de5666aa.patch";
|
|
||||||
sha256 = "17m1hn1kjxfcmd4p3zjhmr5ar9ng0zfbllq78qxrfcq1a0xrkybx";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp OpenRGB $out/bin
|
cp openrgb $out/bin
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
$out/bin/OpenRGB --help > /dev/null
|
$out/bin/openrgb --help > /dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckPhase = ''
|
||||||
|
HOME=$TMPDIR $out/bin/openrgb --help > /dev/null
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user