2021-11-13 22:06:21 +01:00
|
|
|
{ stdenv
|
2021-09-12 14:13:19 +02:00
|
|
|
, fetchgit
|
|
|
|
, ghostscript
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "ghostscript-test-corpus-render";
|
2023-09-09 15:23:20 +02:00
|
|
|
version = "unstable-2023-05-19";
|
2021-09-12 14:13:19 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.ghostscript.com/tests.git";
|
2023-09-09 15:23:20 +02:00
|
|
|
rev = "f7d5087d3d6c236707842dcd428818c6cb8fb041";
|
|
|
|
hash = "sha256-xHOEo1ZJG1GCcEKqaXLDpfRRQxpbSy0bzicKju9hG40=";
|
2021-09-12 14:13:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|