From 0ea5aa9de24f7745bc57de627c7a674bd6dfa155 Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Tue, 6 Dec 2022 13:17:07 +0100 Subject: [PATCH] openrgb: 0.7 -> 0.8 Diff: https://gitlab.com/CalcProgrammer1/OpenRGB/-/compare/release_0.7...release_0.8 --- pkgs/applications/misc/openrgb/default.nix | 30 +++++++--------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/pkgs/applications/misc/openrgb/default.nix b/pkgs/applications/misc/openrgb/default.nix index ab8415a18823..ea81b58a2098 100644 --- a/pkgs/applications/misc/openrgb/default.nix +++ b/pkgs/applications/misc/openrgb/default.nix @@ -1,35 +1,23 @@ -{ lib, mkDerivation, fetchFromGitLab, qmake, libusb1, hidapi, pkg-config, coreutils, mbedtls_2 }: +{ lib, stdenv, fetchFromGitLab, qmake, wrapQtAppsHook, libusb1, hidapi, pkg-config, coreutils, mbedtls_2, qtbase, qttools }: -mkDerivation rec { +stdenv.mkDerivation rec { pname = "openrgb"; - version = "0.7"; + version = "0.8"; src = fetchFromGitLab { owner = "CalcProgrammer1"; repo = "OpenRGB"; rev = "release_${version}"; - sha256 = "0xhfaz0b74nfnh7il2cz5c0338xlzay00g6hc2h3lsncarj8d5n7"; + sha256 = "sha256-46dL1D5oVlw6mNuFDCbbrUDmq42yFXV/qFJ1JnPT5/s="; }; - nativeBuildInputs = [ qmake pkg-config ]; - buildInputs = [ libusb1 hidapi mbedtls_2 ]; + nativeBuildInputs = [ qmake pkg-config wrapQtAppsHook ]; + buildInputs = [ libusb1 hidapi mbedtls_2 qtbase qttools ]; - installPhase = '' - runHook preInstall - - mkdir -p $out/bin - cp openrgb $out/bin - - substituteInPlace 60-openrgb.rules \ + postPatch = '' + patchShebangs scripts/build-udev-rules.sh + substituteInPlace scripts/build-udev-rules.sh \ --replace /bin/chmod "${coreutils}/bin/chmod" - - mkdir -p $out/etc/udev/rules.d - cp 60-openrgb.rules $out/etc/udev/rules.d - - install -Dm444 -t "$out/share/applications" qt/OpenRGB.desktop - install -Dm444 -t "$out/share/icons/hicolor/128x128/apps" qt/OpenRGB.png - - runHook postInstall ''; doInstallCheck = true;