1{ lib 2, buildDunePackage 3, fetchFromGitHub 4, substituteAll 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 rec { 19 pname = "plotkicadsch"; 20 duneVersion = "3"; 21 22 inherit (kicadsch) src version; 23 24 minimalOCamlVersion = "4.09"; 25 26 patches = [ 27 (substituteAll { 28 src = ./fix-paths.patch; 29 inherit coreutils imagemagick; 30 }) 31 ]; 32 33 buildInputs = [ 34 base64 35 cmdliner 36 digestif 37 git-unix 38 kicadsch 39 lwt 40 lwt_ppx 41 sha 42 tyxml 43 ]; 44 45 meta = with lib; { 46 description = "A tool to export Kicad Sch files to SVG pictures"; 47 homepage = "https://github.com/jnavila/plotkicadsch"; 48 license = licenses.isc; 49 maintainers = with maintainers; [ leungbk ]; 50 }; 51}