blob: 089661293c25d926f682e7d32bc3705cec0ac5d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ 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
'';
}
|