From 8dcc6f23e34253ad37c750d591fafcd0ecd78d6d Mon Sep 17 00:00:00 2001 From: David <158768360+anewdi@users.noreply.github.com> Date: Mon, 9 Sep 2024 01:26:07 +0200 Subject: [PATCH] ffmpegthumbnailer: Make thumbnailer file point to absolute path Allows use with nautilus(bubblewrap) even if installed in home.packages --- pkgs/development/libraries/ffmpegthumbnailer/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/ffmpegthumbnailer/default.nix b/pkgs/development/libraries/ffmpegthumbnailer/default.nix index 10e9b70d42ed..ff1a8615ab79 100644 --- a/pkgs/development/libraries/ffmpegthumbnailer/default.nix +++ b/pkgs/development/libraries/ffmpegthumbnailer/default.nix @@ -39,6 +39,11 @@ stdenv.mkDerivation rec { --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ ''; + postInstall = '' + substituteInPlace $out/share/thumbnailers/ffmpegthumbnailer.thumbnailer \ + --replace-fail '=ffmpegthumbnailer' "=$out/bin/ffmpegthumbnailer" + ''; + meta = with lib; { description = "Lightweight video thumbnailer"; longDescription = "FFmpegthumbnailer is a lightweight video