summary refs log tree commit diff
path: root/pkgs/applications/misc/cura/plugins.nix
diff options
context:
space:
mode:
authorbetaboon <betaboon@0x80.ninja>2019-04-08 11:31:47 +0200
committerGabriel Ebner <gebner@gebner.org>2019-06-13 19:14:52 +0200
commitf29609060a1e737021d1adc6baead04d6ae88d61 (patch)
tree3900d003b254535e5e5881698caebbbb0cac346e /pkgs/applications/misc/cura/plugins.nix
parentb6e10d79e96487b412ae8a8db5d1bff1b2b58646 (diff)
downloadnixpkgs-f29609060a1e737021d1adc6baead04d6ae88d61.tar
nixpkgs-f29609060a1e737021d1adc6baead04d6ae88d61.tar.gz
nixpkgs-f29609060a1e737021d1adc6baead04d6ae88d61.tar.bz2
nixpkgs-f29609060a1e737021d1adc6baead04d6ae88d61.tar.lz
nixpkgs-f29609060a1e737021d1adc6baead04d6ae88d61.tar.xz
nixpkgs-f29609060a1e737021d1adc6baead04d6ae88d61.tar.zst
nixpkgs-f29609060a1e737021d1adc6baead04d6ae88d61.zip
cura: support plugins, add octoprint-plugin
Diffstat (limited to 'pkgs/applications/misc/cura/plugins.nix')
-rw-r--r--pkgs/applications/misc/cura/plugins.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/misc/cura/plugins.nix b/pkgs/applications/misc/cura/plugins.nix
new file mode 100644
index 00000000000..a5a196a7810
--- /dev/null
+++ b/pkgs/applications/misc/cura/plugins.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchFromGitHub, cmake, python3Packages }:
+
+let
+
+  self = {
+
+    octoprint = stdenv.mkDerivation rec {
+      pname = "Cura-OctoPrintPlugin";
+      version = "3.5.5";
+
+      src = fetchFromGitHub {
+        owner = "fieldOfView";
+        repo = pname;
+        rev = "d05a9a4c1a01c584d5cec4f4b7d170077235467a";
+        sha256 = "0ik69g3kbn7rz2wh0cfq9ww8x222kagd8jvsd4xlqgq4yrf0jk7x";
+      };
+
+      nativeBuildInputs = [ cmake ];
+
+      propagatedBuildInputs = with python3Packages; [
+        netifaces
+      ];
+
+      meta = with stdenv.lib; {
+        description = "Enables printing directly to OctoPrint and monitoring the process";
+        homepage = "https://github.com/fieldOfView/Cura-OctoPrintPlugin";
+        license = licenses.agpl3;
+        maintainers = with maintainers; [ gebner ];
+      };
+    };
+
+  };
+
+in self