diff --git a/pkgs/tools/misc/ytfzf/default.nix b/pkgs/tools/misc/ytfzf/default.nix index fd58e79063eb..9bcc0712c354 100644 --- a/pkgs/tools/misc/ytfzf/default.nix +++ b/pkgs/tools/misc/ytfzf/default.nix @@ -16,25 +16,32 @@ stdenv.mkDerivation rec { pname = "ytfzf"; - version = "2.2"; + version = "2.3"; src = fetchFromGitHub { owner = "pystardust"; repo = "ytfzf"; rev = "v${version}"; - hash = "sha256-dQq7p/aK9iiyuhuxh5eVXR9GLukwsvosONpQTI0mknw="; + hash = "sha256-zfoICi1VChmrRHZ3dSHGTcXkVf/zirQTycFz98xj+QY="; }; nativeBuildInputs = [ makeWrapper ]; dontBuild = true; - installFlags = [ "PREFIX=${placeholder "out"}" "doc" ]; + installFlags = [ + "PREFIX=" + "DESTDIR=${placeholder "out"}" + "doc" + "addons" + ]; postInstall = '' - wrapProgram "$out/bin/ytfzf" --prefix PATH : ${lib.makeBinPath [ - chafa coreutils curl dmenu fzf gnused jq mpv ueberzug yt-dlp - ]} + wrapProgram "$out/bin/ytfzf" \ + --prefix PATH : ${lib.makeBinPath [ + chafa coreutils curl dmenu fzf gnused jq mpv ueberzug yt-dlp + ]} \ + --set YTFZF_SYSTEM_ADDON_DIR "$out/share/ytfzf/addons" ''; meta = with lib; {