mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
52 lines
785 B
Nix
52 lines
785 B
Nix
{ 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 ];
|
|
};
|
|
}
|