1{ 2 lib, 3 buildDunePackage, 4 replaceVars, 5 base64, 6 cmdliner, 7 digestif, 8 git-unix, 9 kicadsch, 10 lwt, 11 lwt_ppx, 12 sha, 13 tyxml, 14 coreutils, 15 imagemagick, 16}: 17 18buildDunePackage { 19 pname = "plotkicadsch"; 20 duneVersion = "3"; 21 22 inherit (kicadsch) src version; 23 24 minimalOCamlVersion = "4.09"; 25 26 patches = [ 27 (replaceVars ./fix-paths.patch { 28 inherit coreutils imagemagick; 29 }) 30 ]; 31 32 buildInputs = [ 33 base64 34 cmdliner 35 digestif 36 git-unix 37 kicadsch 38 lwt 39 lwt_ppx 40 sha 41 tyxml 42 ]; 43 44 meta = with lib; { 45 description = "Tool to export Kicad Sch files to SVG pictures"; 46 homepage = "https://github.com/jnavila/plotkicadsch"; 47 license = licenses.isc; 48 maintainers = with maintainers; [ leungbk ]; 49 }; 50}