Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 32 lines 722 B view raw
1{ 2 inkscape, 3 runCommand, 4 writeTextFile, 5}: 6 7let 8 svg_file = writeTextFile { 9 name = "test.svg"; 10 text = '' 11 <?xml version="1.0" encoding="UTF-8"?> 12 <svg width="50" height="50" version="1.1"> 13 <ellipse cx="1" cy="1" rx="1" ry="1" /> 14 </svg>''; 15 }; 16in 17runCommand "inkscape-test-eps" 18 { 19 nativeBuildInputs = [ inkscape ]; 20 } 21 '' 22 echo ps test 23 inkscape ${svg_file} --export-type=ps -o test.ps 24 inkscape test.ps -o test.ps.svg 25 26 echo eps test 27 inkscape ${svg_file} --export-type=eps -o test.eps 28 inkscape test.eps -o test.eps.svg 29 30 # inkscape does not return an error code, only does not create files 31 [[ -f test.ps.svg && -f test.eps.svg ]] && touch $out 32 ''