diff options
author | Lily Foster <lily@lily.flowers> | 2023-10-27 19:19:20 -0400 |
---|---|---|
committer | Lily Foster <lily@lily.flowers> | 2023-10-27 19:19:20 -0400 |
commit | caa1f0b814d85af9b5034d766093ecff5023d2a2 (patch) | |
tree | 476a12eb1c0867652451e10736d25e5fa512fec4 /pkgs/applications | |
parent | 4c838ddf1475e374bb34f17c0456fdffec5c2854 (diff) |
mupdf: only build and install shared libraries
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/mupdf/default.nix | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pkgs/applications/misc/mupdf/default.nix b/pkgs/applications/misc/mupdf/default.nix index 606649d5bb12d..77fa02fa5d341 100644 --- a/pkgs/applications/misc/mupdf/default.nix +++ b/pkgs/applications/misc/mupdf/default.nix @@ -1,7 +1,6 @@ { stdenv , lib , fetchurl -, fetchpatch , fetchFromGitHub , copyDesktopItems , makeDesktopItem @@ -70,11 +69,9 @@ stdenv.mkDerivation rec { substituteInPlace Makerules --replace "(shell pkg-config" "(shell $PKG_CONFIG" ''; - # Use shared libraries to decrease size - buildFlags = [ "shared" ]; - makeFlags = [ "prefix=$(out)" + "shared=yes" "USE_SYSTEM_LIBS=yes" "PKG_CONFIG=${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config" ] ++ lib.optionals (!enableX11) [ "HAVE_X11=no" ] @@ -136,7 +133,7 @@ stdenv.mkDerivation rec { Name: mupdf Description: Library for rendering PDF documents Version: ${version} - Libs: -L$out/lib -lmupdf -lmupdf-third + Libs: -L$out/lib -lmupdf Cflags: -I$dev/include EOF |