15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
23 sha256 = "sha256-3VQlYtSi6yWWNuxTlBzvBtkM5hAss47xat+sEW+P79E=";
27 # the patch below is part of upstream mainline, we can remove this
28 # when they make their next release
30 url = "https://github.com/pcb2gcode/pcb2gcode/commit/01cd18a6d859ab1aac6c532c99be9109f083448d.patch";
31 sha256 = "sha256-5hl8KsDxSWMzXS3oRG0fBfHFq0IpZ//sU8lfY9Yp8L0=";
35 nativeBuildInputs = [ autoreconfHook pkg-config ];
37 buildInputs = [ boost glibmm gtkmm2 gerbv librsvg ];
40 substituteInPlace ./Makefile.am \
41 --replace '`git describe --dirty --always --tags`' '${version}'
45 description = "Command-line tool for isolation, routing and drilling of PCBs ";
47 pcb2gcode is a command-line software for the isolation, routing and drilling of PCBs.
48 It takes Gerber files as input and it outputs gcode files, suitable for the milling of PCBs.
49 It also includes an Autoleveller, useful for the automatic dynamic calibration of the milling depth.
51 homepage = "https://github.com/pcb2gcode/pcb2gcode";
52 license = licenses.gpl3Only;
53 maintainers = with maintainers; [ kritnich ];
54 platforms = platforms.linux;