2e6bf42a22
There ver very many conflicts, basically all due to name -> pname+version. Fortunately, almost everything was auto-resolved by kdiff3, and for now I just fixed up a couple evaluation problems, as verified by the tarball job. There might be some fallback to these conflicts, but I believe it should be minimal. Hydra nixpkgs: ?compare=1538299
47 lines
1.4 KiB
Nix
47 lines
1.4 KiB
Nix
{ mkDerivation, lib, fetchFromGitHub, qtwebkit, qtsvg, qtxmlpatterns
|
|
, fontconfig, freetype, libpng, zlib, libjpeg
|
|
, openssl, libX11, libXext, libXrender }:
|
|
|
|
mkDerivation rec {
|
|
version = "0.12.5";
|
|
pname = "wkhtmltopdf";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wkhtmltopdf";
|
|
repo = "wkhtmltopdf";
|
|
rev = version;
|
|
sha256 = "0i6b6z3f4szspbbi23qr3hv22j9bhmcj7c1jizr7y0ra43mrgws1";
|
|
};
|
|
|
|
buildInputs = [
|
|
fontconfig freetype libpng zlib libjpeg openssl
|
|
libX11 libXext libXrender
|
|
qtwebkit qtsvg qtxmlpatterns
|
|
];
|
|
|
|
prePatch = ''
|
|
for f in src/image/image.pro src/pdf/pdf.pro ; do
|
|
substituteInPlace $f --replace '$(INSTALL_ROOT)' ""
|
|
done
|
|
'';
|
|
|
|
configurePhase = "qmake wkhtmltopdf.pro INSTALLBASE=$out";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
homepage = https://wkhtmltopdf.org/;
|
|
description = "Tools for rendering web pages to PDF or images";
|
|
longDescription = ''
|
|
wkhtmltopdf and wkhtmltoimage are open source (LGPL) command line tools
|
|
to render HTML into PDF and various image formats using the QT Webkit
|
|
rendering engine. These run entirely "headless" and do not require a
|
|
display or display service.
|
|
|
|
There is also a C library, if you're into that kind of thing.
|
|
'';
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ jb55 ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|