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
{ stdenv
2
, lib
3
, fetchurl
4
-
, fetchpatch
5
, fetchFromGitHub
6
, copyDesktopItems
7
, makeDesktopItem
···
70
substituteInPlace Makerules --replace "(shell pkg-config" "(shell $PKG_CONFIG"
71
'';
72
73
-
# Use shared libraries to decrease size
74
-
buildFlags = [ "shared" ];
75
-
76
makeFlags = [
77
"prefix=$(out)"
0
78
"USE_SYSTEM_LIBS=yes"
79
"PKG_CONFIG=${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config"
80
] ++ lib.optionals (!enableX11) [ "HAVE_X11=no" ]
···
136
Name: mupdf
137
Description: Library for rendering PDF documents
138
Version: ${version}
139
-
Libs: -L$out/lib -lmupdf -lmupdf-third
140
Cflags: -I$dev/include
141
EOF
142
···
1
{ stdenv
2
, lib
3
, fetchurl
0
4
, fetchFromGitHub
5
, copyDesktopItems
6
, makeDesktopItem
···
69
substituteInPlace Makerules --replace "(shell pkg-config" "(shell $PKG_CONFIG"
70
'';
71
0
0
0
72
makeFlags = [
73
"prefix=$(out)"
74
+
"shared=yes"
75
"USE_SYSTEM_LIBS=yes"
76
"PKG_CONFIG=${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config"
77
] ++ lib.optionals (!enableX11) [ "HAVE_X11=no" ]
···
133
Name: mupdf
134
Description: Library for rendering PDF documents
135
Version: ${version}
136
+
Libs: -L$out/lib -lmupdf
137
Cflags: -I$dev/include
138
EOF
139