diff options
author | Stefan Frijters <sfrijters@gmail.com> | 2020-09-14 06:05:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-13 21:05:47 -0700 |
commit | a05439ca31a8d75e3d1142e96adcd5495932d10e (patch) | |
tree | 186403f1cb0431a1b652e75792e7f5767e4f1ef0 /pkgs/applications/misc/openrgb | |
parent | 883575046b5bb7872a51da823ae1e6293e77c899 (diff) |
openrgb: 0.3 -> 0.4 (#97711)
* openrgb: 0.3 -> 0.4 * openrgb: Patch project configuration to respect SOURCE_DATE_EPOCH
Diffstat (limited to 'pkgs/applications/misc/openrgb')
-rw-r--r-- | pkgs/applications/misc/openrgb/default.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/applications/misc/openrgb/default.nix b/pkgs/applications/misc/openrgb/default.nix index 89a16568281a9..09a09811ab186 100644 --- a/pkgs/applications/misc/openrgb/default.nix +++ b/pkgs/applications/misc/openrgb/default.nix @@ -1,19 +1,27 @@ -{ mkDerivation, lib, fetchFromGitHub, qmake, libusb1, hidapi, pkg-config }: +{ mkDerivation, lib, fetchFromGitHub, qmake, libusb1, hidapi, pkg-config, fetchpatch }: mkDerivation rec { pname = "openrgb"; - version = "0.3"; + version = "0.4"; src = fetchFromGitHub { owner = "CalcProgrammer1"; repo = "OpenRGB"; rev = "release_${version}"; - sha256 = "1931aisdahjr99d4qqk824ib4x19mvhqgqmkm3j6fc5zd2hnw87m"; + sha256 = "sha256-tHrRG2Zx7NYqn+WPiRpAlWA/QmxuAYidENanTkC1XVw"; }; nativeBuildInputs = [ qmake pkg-config ]; 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 = '' mkdir -p $out/bin cp OpenRGB $out/bin |