diff --git a/pkgs/tools/graphics/wkhtmltopdf/default.nix b/pkgs/tools/graphics/wkhtmltopdf/default.nix new file mode 100644 index 000000000000..84b271acf2b0 --- /dev/null +++ b/pkgs/tools/graphics/wkhtmltopdf/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchurl, qt4 }: + +stdenv.mkDerivation rec { + name = "wkhtmltopdf-0.11.0_rc1"; + + src = fetchurl { + url = "http://wkhtmltopdf.googlecode.com/files/${name}.tar.bz2"; + sha1 = "db03922d281856e503b3d562614e3936285728c7"; + }; + + buildInputs = [ qt4 ]; + + configurePhase = "qmake wkhtmltopdf.pro INSTALLBASE=$out"; + + enableParallelBuilding = true; + + meta = { + homepage = http://code.google.com/p/wkhtmltopdf/; + description = "Tools for rendering web pages to PDF or images"; + license = stdenv.lib.licenses.gpl3Plus; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f8807b00e14e..5e8089473a87 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1287,7 +1287,6 @@ let ripmime = callPackage ../tools/networking/ripmime {}; rsnapshot = callPackage ../tools/backup/rsnapshot { - # For the `logger' command, we can use either `utillinux' or # GNU Inetutils. The latter is more portable. logger = inetutils; @@ -1557,6 +1556,8 @@ let wicd = callPackage ../tools/networking/wicd { }; + wkhtmltopdf = callPackage ../tools/graphics/wkhtmltopdf { }; + wv = callPackage ../tools/misc/wv { }; wv2 = callPackage ../tools/misc/wv2 { };