Skip to content

Commit

Permalink
mupdf: Improve pkg-config file
Browse files Browse the repository at this point in the history
- Use variable substitution to base paths on prefix
  - multiple-outputs hook takes care of applying corrections as needed
- Actually use the variables in Cflags & Libs
  • Loading branch information
OPNA2608 committed Feb 4, 2024
1 parent add9880 commit a2753ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/applications/misc/mupdf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ stdenv.mkDerivation rec {
mkdir -p "$out/lib/pkgconfig"
cat >"$out/lib/pkgconfig/mupdf.pc" <<EOF
prefix=$out
libdir=$out/lib
includedir=$dev/include
libdir=\''${prefix}/lib
includedir=\''${prefix}/include
Name: mupdf
Description: Library for rendering PDF documents
Version: ${version}
Libs: -L$out/lib -lmupdf
Cflags: -I$dev/include
Libs: -L\''${libdir} -lmupdf
Cflags: -I\''${includedir}
EOF
moveToOutput "bin" "$bin"
Expand Down

0 comments on commit a2753ce

Please sign in to comment.