ffmpegthumbnailer: Make thumbnailer file point to absolute path

Allows use with nautilus(bubblewrap) even if installed in home.packages
This commit is contained in:
David 2024-09-09 01:26:07 +02:00 committed by David
parent 53cce2fff7
commit 8dcc6f23e3

View File

@ -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