about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/plotkicadsch/default.nix
blob: 27b3a0ac5ee783e07ceca73dff00061d034ae3a3 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{ lib
, buildDunePackage
, fetchFromGitHub
, substituteAll
, base64
, cmdliner
, digestif
, git-unix
, kicadsch
, lwt
, lwt_ppx
, sha
, tyxml
, coreutils
, imagemagick
}:

buildDunePackage rec {
  pname = "plotkicadsch";
  duneVersion = "3";

  inherit (kicadsch) src version;

  minimalOCamlVersion = "4.09";

  patches = [
    (substituteAll {
      src = ./fix-paths.patch;
      inherit coreutils imagemagick;
    })
  ];

  buildInputs = [
    base64
    cmdliner
    digestif
    git-unix
    kicadsch
    lwt
    lwt_ppx
    sha
    tyxml
  ];

  meta = with lib; {
    description = "A tool to export Kicad Sch files to SVG pictures";
    homepage = "https://github.com/jnavila/plotkicadsch";
    license = licenses.isc;
    maintainers = with maintainers; [ leungbk ];
  };
}