wkhtmltopdf-bin: init at 0.12.6-1

main
Nick Braga 3 years ago committed by Yt
parent c621d2cfdb
commit 06f09c3d3f
  1. 6
      maintainers/maintainer-list.nix
  2. 51
      pkgs/tools/graphics/wkhtmltopdf-bin/default.nix
  3. 2
      pkgs/top-level/all-packages.nix

@ -8722,6 +8722,12 @@
fingerprint = "4BFF 0614 03A2 47F0 AA0B 4BC4 916D 8B67 2418 92AE";
}];
};
nbr = {
email = "nbr@users.noreply.github.com";
github = "nbr";
githubId = 3819225;
name = "Nick Braga";
};
nbren12 = {
email = "nbren12@gmail.com";
github = "nbren12";

@ -0,0 +1,51 @@
{ stdenv, lib, fetchurl, wkhtmltopdf, xar, cpio }:
stdenv.mkDerivation rec {
pname = "wkhtmltopdf-bin";
version = "0.12.6-1";
sha256 = "1db59kdprzpmvdj1bg47lmfgi3zlvzvqif11sbym9hw61xy6gp3d";
src = fetchurl {
url =
"https://github.com/wkhtmltopdf/packaging/releases/download/${version}/wkhtmltox-${version}.macos-cocoa.pkg";
inherit sha256;
};
buildInputs = [ xar cpio ];
unpackPhase = ''
xar -xf $src
zcat Payload | cpio -i
tar -xf usr/local/share/wkhtmltox-installer/wkhtmltox.tar.gz
'';
installPhase = ''
mkdir -p $out
cp -r bin include lib share $out/
'';
dontStrip = true;
doInstallCheck = true;
installCheckPhase = ''
$out/bin/wkhtmltopdf --version
'';
meta = with lib; {
homepage = "https://wkhtmltopdf.org/";
description =
"Tools for rendering web pages to PDF or images (binary package)";
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; [ nbr ];
platforms = [ "x86_64-darwin" ];
};
}

@ -11349,6 +11349,8 @@ with pkgs;
wkhtmltopdf = libsForQt514.callPackage ../tools/graphics/wkhtmltopdf { };
wkhtmltopdf-bin = callPackage ../tools/graphics/wkhtmltopdf-bin { };
wml = callPackage ../development/web/wml { };
wmc-mpris = callPackage ../applications/misc/web-media-controller { };

Loading…
Cancel
Save