nixpkgs/pkgs/misc/ghostscript/test-corpus-render.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
747 B
Nix
Raw Normal View History

2021-11-13 22:06:21 +01:00
{ stdenv
, fetchgit
, ghostscript
}:
stdenv.mkDerivation {
pname = "ghostscript-test-corpus-render";
version = "unstable-2023-05-19";
src = fetchgit {
url = "git://git.ghostscript.com/tests.git";
rev = "f7d5087d3d6c236707842dcd428818c6cb8fb041";
hash = "sha256-xHOEo1ZJG1GCcEKqaXLDpfRRQxpbSy0bzicKju9hG40=";
};
dontConfigure = true;
dontBuild = true;
doCheck = true;
checkPhase = ''
find . -iregex '.*\.\(ps\|eps\|pdf\)' | while read f; do
echo "Rendering $f"
${ghostscript}/bin/gs \
-dNOPAUSE \
-dBATCH \
-sDEVICE=bitcmyk \
-sOutputFile=/dev/null \
-r600 \
-dBufferSpace=100000 \
$f
done
'';
installPhase = ''
touch $out
'';
}