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