diff options
| author | Robert Scott <code@humanleg.org.uk> | 2022-02-03 21:46:28 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2022-02-04 01:10:10 +0000 |
| commit | 50db7260903d2f38d78a1bf20e162d2774c7f021 (patch) | |
| tree | 83f0fc34c43a9c48444f26630593e27698057bab | |
| parent | graphicsmagick: fix use of delegates in conversions (diff) | |
| download | nixpkgs-50db7260903d2f38d78a1bf20e162d2774c7f021.tar.gz | |
graphicsmagick: add passthru regression test for issue #157920
use a pdf from the documentation of `graphviz` as it's already a
dependency
(cherry picked from commit e379b45caaff2a70be6aff85b0e3e4e6fdbd2490)
| -rw-r--r-- | pkgs/applications/graphics/graphicsmagick/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/applications/graphics/graphicsmagick/default.nix b/pkgs/applications/graphics/graphicsmagick/default.nix index 73a74299cc0b..8458d35e4598 100644 --- a/pkgs/applications/graphics/graphicsmagick/default.nix +++ b/pkgs/applications/graphics/graphicsmagick/default.nix @@ -1,6 +1,9 @@ { lib, stdenv, fetchurl, bzip2, freetype, graphviz, ghostscript , libjpeg, libpng, libtiff, libxml2, zlib, libtool, xz, libX11 -, libwebp, quantumdepth ? 8, fixDarwinDylibNames, nukeReferences }: +, libwebp, quantumdepth ? 8, fixDarwinDylibNames, nukeReferences +, runCommand +, graphicsmagick # for passthru.tests +}: stdenv.mkDerivation rec { pname = "graphicsmagick"; @@ -40,6 +43,16 @@ stdenv.mkDerivation rec { sed -i 's/-ltiff.*'\'/\'/ $out/bin/* ''; + passthru = { + tests = { + issue-157920 = runCommand "issue-157920-regression-test" { + buildInputs = [ graphicsmagick ]; + } '' + gm convert ${graphviz}/share/graphviz/doc/pdf/neatoguide.pdf jpg:$out + ''; + }; + }; + meta = { homepage = "http://www.graphicsmagick.org"; description = "Swiss army knife of image processing"; |
