Skip to content

Commit

Permalink
papers: Make thumbnailer file point to absolute path (#340625)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtojnar authored Sep 15, 2024
2 parents 5439240 + 8ce371c commit 6c8bdaa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkgs/by-name/pa/papers/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6c8bdaa

Please sign in to comment.