PenPlotter inkscape plugin

This commit is contained in:
Olaf Kolkman committed 2026-11-25 14:23:14 +01:00
1 parent 3209dbc405
commit 2c387a29bd
2 files changed
+25

No files matched your search

+13
View File
@@ -14,6 +14,17 @@ let
url = "https://gitlab.com/moini_ink/hatch_fill/-/archive/master/hatch_fill-master.tar.gz";
sha256 = "1m3qhvf158dngg7shwd33xhn3bawn9yxw2srv2k8qjn889wjvi82";
};
penPlotterSource = pkgs.fetchzip {
url = "https://github.com/abdulshakoorkakar/Inkscape-ASK-Pen-Plotter-Gcode-Export/archive/b5f1476b4f4f1c5f4e818e066a05bfaf6d2b860d.tar.gz";
sha256 = "18ssw051qi5znkwrxx9y4mbjsq61whahmsk7f20mrqdr9ccbi5m6";
};
penPlotterInx = pkgs.runCommand "penplotter_gcode.inx" { } ''
cp ${penPlotterSource}/penplotter_gcode.inx "$out"
substituteInPlace "$out" \
--replace-fail 'gui-text="Pen up command:">M3 S0</param>' 'gui-text="Pen up command:">G21 G90 G53 G0 Z2</param>' \
--replace-fail 'gui-text="Pen down command:">M3 S180</param>' 'gui-text="Pen down command:">G21 G90 G53 G0 Z0</param>' \
--replace-fail 'gui-text="Travel speed, pen up (mm/min):">4000</param>' 'gui-text="Travel speed, pen up (mm/min):">2000</param>'
'';
in
{
@@ -63,4 +74,6 @@ in
"${inkscapeExtensionsHome}/hatch_fill.inx".source = "${hatchFillSource}/hatch_fill.inx";
"${inkscapeExtensionsHome}/hatch_fill.py".source = "${hatchFillSource}/hatch_fill.py";
"${inkscapeExtensionsHome}/penplotter_gcode.inx".source = penPlotterInx;
"${inkscapeExtensionsHome}/penplotter_gcode.py".source = "${penPlotterSource}/penplotter_gcode.py";
}