From 597d5f8dc58c3edda5cd0e6b731b78a971986eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 26 Jun 2023 14:19:22 +0200 Subject: [PATCH] Revert "mupdf: actually build and install the shared libraries version" This reverts commit 3d4769a9e86a51117973281d8ab4328713c4c180. This broke many packages; let's revert until that's resolved. https://github.com/NixOS/nixpkgs/pull/237199#issuecomment-1607343333 --- pkgs/applications/misc/mupdf/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/mupdf/default.nix b/pkgs/applications/misc/mupdf/default.nix index 99ca27514345..c9523581b0a9 100644 --- a/pkgs/applications/misc/mupdf/default.nix +++ b/pkgs/applications/misc/mupdf/default.nix @@ -64,9 +64,11 @@ 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" ]