From 55b5e58c23e905dd9b5c5d0dff777fc0dc531981 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 30 Jan 2023 10:52:06 -0700 Subject: [PATCH] doc: add links for overrides / tweaks --- gui/default.nix | 1 + overlays/default.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/gui/default.nix b/gui/default.nix index 70b8f4a..08f8ef7 100644 --- a/gui/default.nix +++ b/gui/default.nix @@ -53,6 +53,7 @@ in with lib; { sound.enable = true; security.rtkit.enable = true; + # https://github.com/NixOS/nixpkgs/pull/213593 nixpkgs.config.permittedInsecurePackages = [ "electron-18.1.0" # obsidian ]; diff --git a/overlays/default.nix b/overlays/default.nix index 51220ea..9e831bf 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -22,6 +22,36 @@ let in { nixpkgs.overlays = if isUnstable then [ tailscale + + # https://github.com/NixOS/nixpkgs/pull/213613 + (self: super: { + tidal-hifi = super.tidal-hifi.overrideAttrs (old: rec { + version = "4.4.0"; + + src = super.fetchurl { + url = + "https://github.com/Mastermindzh/tidal-hifi/releases/download/${version}/tidal-hifi_${version}_amd64.deb"; + sha256 = "sha256-6KlcxBV/zHN+ZnvIu1PcKNeS0u7LqhDqAjbXawT5Vv8="; + }; + + postFixup = '' + makeWrapper $out/opt/tidal-hifi/tidal-hifi $out/bin/tidal-hifi \ + --prefix LD_LIBRARY_PATH : "${ + lib.makeLibraryPath old.buildInputs + }" \ + "''${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 + ''; + + }); + }) (self: super: { rex = super.rex.overrideAttrs (old: { patches = [