Merge pull request #228552 from qbit/tidal-hifi-5.1.0

tidal-hifi: 5.0.0 -> 5.1.0
This commit is contained in:
Weijia Wang 2023-04-27 22:03:35 +03:00 committed by GitHub
commit 22c5f2bbc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,6 @@
, gdk-pixbuf
, glib
, gtk3
, imagemagick
, libappindicator-gtk3
, libdbusmenu
, libdrm
@ -37,11 +36,11 @@
stdenv.mkDerivation rec {
pname = "tidal-hifi";
version = "5.0.0";
version = "5.1.0";
src = fetchurl {
url = "https://github.com/Mastermindzh/tidal-hifi/releases/download/${version}/tidal-hifi_${version}_amd64.deb";
sha256 = "sha256-6NyHDH16bLs+bgSbjZYm2LEzp1WkJ1nO3sdkO78/VqE=";
sha256 = "sha256-IaSgul2L0L343TVT3ujgBoMt6tITwjJaBNOVJPCBDtI=";
};
nativeBuildInputs = [ autoPatchelfHook dpkg makeWrapper ];
@ -61,7 +60,6 @@ stdenv.mkDerivation rec {
gdk-pixbuf
glib
gtk3
imagemagick
pango
systemd
mesa # for libgbm
@ -110,12 +108,6 @@ stdenv.mkDerivation rec {
"''${gappsWrapperArgs[@]}"
substituteInPlace $out/share/applications/tidal-hifi.desktop \
--replace "/opt/tidal-hifi/tidal-hifi" "tidal-hifi"
for size in 48 64 128 256 512; do
mkdir -p $out/share/icons/hicolor/''${size}x''${size}/apps/
convert $out/share/icons/hicolor/0x0/apps/tidal-hifi.png \
-resize ''${size}x''${size} $out/share/icons/hicolor/''${size}x''${size}/apps/icon.png
done
'';
meta = with lib; {