From 2a2933c4736b2897b64b557233cb5fe68159653a Mon Sep 17 00:00:00 2001 From: tdpeuter Date: Mon, 23 Oct 2023 22:18:18 +0200 Subject: [PATCH] [spotify] Fix adblock config file not found --- nixos/overlays/spotify/default.nix | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/nixos/overlays/spotify/default.nix b/nixos/overlays/spotify/default.nix index a5f9c17..fc77396 100644 --- a/nixos/overlays/spotify/default.nix +++ b/nixos/overlays/spotify/default.nix @@ -15,24 +15,10 @@ final: prev: { cargo rustc ]; - }; -# spotify-wrapper = final.writeScriptBin "spotify-with-adblock" '' -# #!/bin/sh -# LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify -# ''; -# spotify = prev.spotify.overrideAttrs (something: rec { -# installPhase = '' -# echo no -# ''; -# desktopItem = something.desktopItem.override (desktop: { -# exec = "LD_PRELOAD=/usr/local/lib/spotify-adblock.so ${desktop.exec}"; -# }); -# -# installPhase = builtins.replaceString [ -# "${something.desktopItem}" -# ] [ -# "${desktopItem}" -# ] something.installPhase; -# }); + postPatch = '' + mkdir -p $out + cp $src/config.toml $out/config.toml + ''; + }; }