From 755e3f5c5ce4d24e9963d182c11889e048a9a821 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Thu, 27 Apr 2023 09:21:50 -0600 Subject: [PATCH] overlays/tidal-hifi: update to 5.1.0 Disable when https://github.com/NixOS/nixpkgs/pull/228552 lands --- overlays/default.nix | 6 +++--- overlays/tidal-hifi.nix | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 overlays/tidal-hifi.nix diff --git a/overlays/default.nix b/overlays/default.nix index 5738793..badf84b 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,12 +1,12 @@ -{ isUnstable, ... }: +{ isUnstable, lib, ... }: let openssh = import ./openssh.nix; tailscale = import ./tailscale.nix; - jetbrains = import ./jetbrains.nix; in { nixpkgs.overlays = if isUnstable then [ - jetbrains + (import ./jetbrains.nix) + (import ./tidal-hifi.nix { inherit lib; }) openssh tailscale ] else [ diff --git a/overlays/tidal-hifi.nix b/overlays/tidal-hifi.nix new file mode 100644 index 0000000..1c58980 --- /dev/null +++ b/overlays/tidal-hifi.nix @@ -0,0 +1,23 @@ +{ lib, ... }: +let + tidal-hifi = _: super: { + tidal-hifi = super.tidal-hifi.overrideAttrs (_: rec { + version = "5.1.0"; + + src = super.fetchurl { + url = + "https://github.com/Mastermindzh/tidal-hifi/releases/download/${version}/tidal-hifi_${version}_amd64.deb"; + sha256 = "sha256-IaSgul2L0L343TVT3ujgBoMt6tITwjJaBNOVJPCBDtI="; + }; + postFixup = '' + makeWrapper $out/opt/tidal-hifi/tidal-hifi $out/bin/tidal-hifi \ + --prefix LD_LIBRARY_PATH : "${ + lib.makeLibraryPath super.tidal-hifi.buildInputs + }" \ + "''${gappsWrapperArgs[@]}" + substituteInPlace $out/share/applications/tidal-hifi.desktop \ + --replace "/opt/tidal-hifi/tidal-hifi" "tidal-hifi" + ''; + }); + }; +in tidal-hifi