3
0
Fork 0
forked from mirrors/nixpkgs

ghostscript: disable checkPhase, expand installCheckPhase

upon closer inspection, `make check` does little except rebuild
everything with some different options. ghostscript has a python-based
test suite, but it looks like an unmaintained disaster zone.

so the best we can probably do for now is ensure we can render all the
provided examples.
This commit is contained in:
Robert Scott 2021-09-11 19:07:58 +01:00
parent 1b6e16479b
commit d24d65786c

View file

@ -85,7 +85,8 @@ stdenv.mkDerivation rec {
"--with-cups-datadir=$(out)/share/cups"
];
doCheck = true;
# make check does nothing useful
doCheck = false;
# don't build/install statically linked bin/gs
buildFlags = [ "so" ];
@ -115,6 +116,19 @@ stdenv.mkDerivation rec {
runHook preInstallCheck
$out/bin/gs --version
pushd examples
for f in *.{ps,eps,pdf}; do
echo "Rendering $f"
$out/bin/gs \
-dNOPAUSE \
-dBATCH \
-sDEVICE=bitcmyk \
-sOutputFile=/dev/null \
-r600 \
-dBufferSpace=100000 \
$f
done
popd # examples
runHook postInstallCheck
'';