papers: 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:31:16 +02:00 committed by David
parent 3b5b437bcf
commit 8ce371c484

View File

@ -111,6 +111,11 @@ stdenv.mkDerivation (finalAttrs: {
stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "16"
) "-Wno-error=incompatible-function-pointer-types";
postInstall = ''
substituteInPlace $out/share/thumbnailers/papers.thumbnailer \
--replace-fail '=papers-thumbnailer' "=$out/bin/papers-thumbnailer"
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix XDG_DATA_DIRS : "${shared-mime-info}/share"