Skip to content

Commit d5861fa

Browse files
committedMay 11, 2017
wkhtmltopdf: 0.12.3.2 -> 0.12.4
1 parent 9394314 commit d5861fa

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed
 

‎pkgs/tools/graphics/wkhtmltopdf/default.nix

+22-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
{ stdenv, fetchFromGitHub, qt4, fontconfig, freetype, libpng, zlib, libjpeg
1+
{ stdenv, fetchFromGitHub, fetchpatch, qt4, fontconfig, freetype, libpng, zlib, libjpeg
22
, openssl, libX11, libXext, libXrender, overrideDerivation }:
33

44
stdenv.mkDerivation rec {
5-
version = "0.12.3.2";
5+
version = "0.12.4";
66
name = "wkhtmltopdf-${version}";
77

88
src = fetchFromGitHub {
99
owner = "wkhtmltopdf";
1010
repo = "wkhtmltopdf";
11-
rev = "${version}";
12-
sha256 = "1yyqjhxv4dvpkad79scs7xdx4iz8jpyidr9ya86k3zpfyvh4gq3s";
11+
rev = version;
12+
sha256 = "09yzj9ylc6ci4a1qlhz60cgxi1nm9afwjrjxfikf8wwjd3i24vp2";
1313
};
1414

1515
wkQt = overrideDerivation qt4 (deriv: {
@@ -105,13 +105,26 @@ stdenv.mkDerivation rec {
105105
'';
106106
});
107107

108-
buildInputs = [ wkQt fontconfig freetype libpng zlib libjpeg openssl
109-
libX11 libXext libXrender
110-
];
108+
buildInputs = [
109+
wkQt fontconfig freetype libpng zlib libjpeg openssl
110+
libX11 libXext libXrender
111+
];
111112

112-
configurePhase = "qmake wkhtmltopdf.pro INSTALLBASE=$out";
113+
prePatch = ''
114+
for f in src/image/image.pro src/pdf/pdf.pro ; do
115+
substituteInPlace $f --replace '$(INSTALL_ROOT)' ""
116+
done
117+
'';
118+
119+
patches = [
120+
(fetchpatch {
121+
name = "make-0.12.4-compile.patch";
122+
url = "https://github.com/efx/aports/raw/eb9f8e6bb9a488460929db747b15b8fceddd7abd/testing/wkhtmltopdf/10-patch1.patch";
123+
sha256 = "1c136jz0klr2rmhmy13gdbgsgkpjfdp2sif8bnw8d23mr9pym3s1";
124+
})
125+
];
113126

114-
patches = [ ./makefix.patch ];
127+
configurePhase = "qmake wkhtmltopdf.pro INSTALLBASE=$out";
115128

116129
enableParallelBuilding = true;
117130

0 commit comments

Comments
 (0)
Please sign in to comment.