diff options
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/imgur-screenshot/default.nix | 29 | ||||
-rw-r--r-- | pkgs/tools/graphics/wkhtmltopdf/default.nix | 17 |
2 files changed, 39 insertions, 7 deletions
diff --git a/pkgs/tools/graphics/imgur-screenshot/default.nix b/pkgs/tools/graphics/imgur-screenshot/default.nix new file mode 100644 index 000000000000..d1badc735095 --- /dev/null +++ b/pkgs/tools/graphics/imgur-screenshot/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchFromGitHub, makeWrapper, curl, gnugrep, libnotify, scrot, which, xclip }: + +let deps = stdenv.lib.makeSearchPath "bin" [ curl gnugrep libnotify scrot which xclip ]; +in stdenv.mkDerivation rec { + version = "1.5.4"; + name = "imgur-screenshot-${version}"; + + src = fetchFromGitHub { + owner = "jomo"; + repo = "imgur-screenshot"; + rev = "v${version}"; + sha256 = "1ff88mvrd0b7nmrkjljs3rnprk5ih0iif92dn39s3vnag3fp9f10"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + install -Dm755 imgur-screenshot.sh $out/bin/imgur-screenshot + wrapProgram $out/bin/imgur-screenshot --prefix PATH ':' ${deps} + ''; + + meta = with stdenv.lib; { + description = "A tool for easy screencapping and uploading to imgur."; + homepage = "https://https://github.com/jomo/imgur-screenshot/"; + platforms = platforms.linux; + license = licenses.mit; + maintainers = with maintainers; [ lw ]; + }; +} \ No newline at end of file diff --git a/pkgs/tools/graphics/wkhtmltopdf/default.nix b/pkgs/tools/graphics/wkhtmltopdf/default.nix index 2f3929b82b8e..89ea0e944440 100644 --- a/pkgs/tools/graphics/wkhtmltopdf/default.nix +++ b/pkgs/tools/graphics/wkhtmltopdf/default.nix @@ -2,21 +2,23 @@ , openssl, libX11, libXext, libXrender, overrideDerivation }: stdenv.mkDerivation rec { - version = "0.12.1"; + version = "0.12.2.4"; name = "wkhtmltopdf-${version}"; src = fetchgit { url = "https://github.com/wkhtmltopdf/wkhtmltopdf.git"; rev = "refs/tags/${version}"; - sha256 = "0wjzaaviy1k3z8r2kzb2rmyx6xdj23a338b86sxcb15ws3kzwgwh"; + sha256 = "0g96vgi3s633j4myjfzakkyiml1zspvdvbc0q1vhw8fp5n1xdknm"; + fetchSubmodules = false; }; wkQt = overrideDerivation qt4 (deriv: { name = "qt-mod-4.8.6"; + enableParallelBuilding = true; src = fetchgit { url = "https://github.com/wkhtmltopdf/qt.git"; - rev = "82b568b"; # From git submodule spec in wkhtml repo. - sha256 = "0whppwxnymh5bdayqsqx54n074m99yk6v78z7f0k5prja55yvwyx"; + rev = "48e71c19c7fc67517fb3dca6d42eacb57341c9ba"; # From git submodule spec in wkhtml repo. + sha256 = "1ygr7g3k900zjf54ji6kkfppqnxaqwbh8npr53g2krdw3bmny6fx"; }; configureFlags = '' @@ -67,12 +69,12 @@ stdenv.mkDerivation rec { ]; configurePhase = "qmake wkhtmltopdf.pro INSTALLBASE=$out"; - + patches = [ ./makefix.patch ]; enableParallelBuilding = true; - meta = { + meta = with stdenv.lib; { homepage = http://wkhtmltopdf.org/; description = "Tools for rendering web pages to PDF or images"; longDescription = '' @@ -83,6 +85,7 @@ stdenv.mkDerivation rec { There is also a C library, if you're into that kind of thing. ''; - license = stdenv.lib.licenses.gpl3Plus; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ jb55 ]; }; } |