diff --git a/flake.nix b/flake.nix index 9c936f7..567bc7d 100644 --- a/flake.nix +++ b/flake.nix @@ -59,6 +59,9 @@ }; vpype = final.callPackage ./packages/vpype { python3 = pythonFinal; }; + vpype-gcode = final.callPackage ./packages/vpype-gcode { + python3 = pythonFinal; + }; } // (final.callPackage ./packages/axidraw/modules.nix { python3 = pythonFinal; })) diff --git a/packages/vpype-gcode/default.nix b/packages/vpype-gcode/default.nix new file mode 100644 index 0000000..1fd16c1 --- /dev/null +++ b/packages/vpype-gcode/default.nix @@ -0,0 +1,23 @@ +{ lib, python3, fetchFromGitHub }: + +python3.buildPythonPackage rec { + pname = "vpype"; + version = "1.13.0"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "plottertools"; + repo = "vpype-gcode"; + rev = version; + hash = "sha256-waSHw4DBgozcBwNTgZwGfvmg0UHaENJIGrCqnMu0ruU="; + }; + + propagatedBuildInputs = with python3; [ click numpy vpype ]; + + meta = with lib; { + description = "gcode extension for vpype"; + homepage = "https://github.com/plottertools/vpype-gcode"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ artemist ]; + }; +}