tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mupdf: only build and install shared libraries
Lily Foster
2 years ago
caa1f0b8
4c838ddf
+2
-5
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
mupdf
default.nix
+2
-5
pkgs/applications/misc/mupdf/default.nix
···
1
1
{ stdenv
2
2
, lib
3
3
, fetchurl
4
4
-
, fetchpatch
5
4
, fetchFromGitHub
6
5
, copyDesktopItems
7
6
, makeDesktopItem
···
70
69
substituteInPlace Makerules --replace "(shell pkg-config" "(shell $PKG_CONFIG"
71
70
'';
72
71
73
73
-
# Use shared libraries to decrease size
74
74
-
buildFlags = [ "shared" ];
75
75
-
76
72
makeFlags = [
77
73
"prefix=$(out)"
74
74
+
"shared=yes"
78
75
"USE_SYSTEM_LIBS=yes"
79
76
"PKG_CONFIG=${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config"
80
77
] ++ lib.optionals (!enableX11) [ "HAVE_X11=no" ]
···
136
133
Name: mupdf
137
134
Description: Library for rendering PDF documents
138
135
Version: ${version}
139
139
-
Libs: -L$out/lib -lmupdf -lmupdf-third
136
136
+
Libs: -L$out/lib -lmupdf
140
137
Cflags: -I$dev/include
141
138
EOF
142
139