summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid <158768360+anewdi@users.noreply.github.com>2024-09-09 01:26:07 +0200
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-09-11 05:49:03 +0000
commit3f3c3ffda9bc7b01f690a7157766ad52525492d8 (patch)
tree7f7ce5ade56e718d94dc937d99bf3b415cbc9e3d
parent[Backport release-24.05] ffcast: add awk to path (#341124) (diff)
downloadnixpkgs-origin/backport-340624-to-release-24.05.tar.gz
ffmpegthumbnailer: Make thumbnailer file point to absolute pathorigin/backport-340624-to-release-24.05
Allows use with nautilus(bubblewrap) even if installed in home.packages (cherry picked from commit 8dcc6f23e34253ad37c750d591fafcd0ecd78d6d)
-rw-r--r--pkgs/development/libraries/ffmpegthumbnailer/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/ffmpegthumbnailer/default.nix b/pkgs/development/libraries/ffmpegthumbnailer/default.nix
index c1c9fe960e7d..613fa8baabf3 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 = "A lightweight video thumbnailer";
longDescription = "FFmpegthumbnailer is a lightweight video