1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- (define-module (wkhtmltopdf)
- #:use-module (guix packages)
- #:use-module (guix download)
- #:use-module (guix utils)
- #:use-module (guix build-system python)
- #:use-module ((guix licenses) #:prefix license:)
- #:use-module (gnu packages compression) ; zlib
- #:use-module (gnu packages fontutils)
- #:use-module (gnu packages image)
- #:use-module (gnu packages tls) ; openssl
- #:use-module (gnu packages xorg)
- #:use-module (srfi srfi-1))
- (define-public wkhtmltopdf
- (package
- (name "wkhtmltopdf")
- (version "0.12.4")
- (source (origin
- (method url-fetch)
- (uri
- (string-append
- "http://download.gna.org/wkhtmltopdf/0.12/0.12.4/wkhtmltox-"
- version ".tar.bz2"))
- (sha256
- (base32
- "14vvzcjgd46g0y2mq7k6ph1dz8lf9i37mw35gs0sr81jfbzyxmgd"))))
- (build-system python-build-system)
- (inputs `(("fontconfig" ,fontconfig)
- ("freetype" ,freetype)
- ("libpng" ,libpng)
- ("zlib" ,zlib)
- ("libjpeg" ,libjpeg)
- ("openssl" ,openssl)
- ("libx11" ,libx11)
- ("libxext" ,libxext)
- ("libxrender" ,libxrender)))
- (arguments
- ;;`(#:configure-flags `("setup-schroot-generic"))
- '(#:phases
- (modify-phases %standard-phases
- (add-before
- 'install
- (lambda* (#:key inputs #:allow-other-keys)
- (substitute* (list "./scripts/release.py" "./scripts/build.py")
- (("#!/usr/bin/env python")
- (string-append "#!" (which "python")))))))))
- ;; Meta
- (synopsis "Tools for rendering web pages to PDF or images")
- (description "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.
- GUIX Specific: C library is untested")
- (home-page "http://wkhtmltopdf.org/")
- (license license:gpl3+)))
|