overlays/tidal-hifi: update to 5.1.0

Disable when https://github.com/NixOS/nixpkgs/pull/228552 lands
This commit is contained in:
Aaron Bieber 2023-04-27 09:21:50 -06:00
parent 1cd8f4923c
commit 755e3f5c5c
No known key found for this signature in database
2 changed files with 26 additions and 3 deletions

View File

@ -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 [

23
overlays/tidal-hifi.nix Normal file
View File

@ -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