2018-12-06 05:05:27 +00:00
|
|
|
{ stdenv, fetchFromGitHub, octoprint, python2Packages }:
|
2016-02-17 12:51:20 +00:00
|
|
|
|
|
|
|
let
|
2018-12-06 05:05:27 +00:00
|
|
|
buildPlugin = args: python2Packages.buildPythonPackage (args // {
|
2018-12-09 12:47:12 +00:00
|
|
|
pname = "OctoPrintPlugin-${args.pname}";
|
|
|
|
inherit (args) version;
|
2018-12-06 05:05:27 +00:00
|
|
|
propagatedBuildInputs = (args.propagatedBuildInputs or []) ++ [ octoprint ];
|
|
|
|
# none of the following have tests
|
|
|
|
doCheck = false;
|
2016-02-17 12:51:20 +00:00
|
|
|
});
|
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
self = {
|
2016-02-17 12:51:20 +00:00
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
# Deprecated alias
|
|
|
|
m3d-fio = self.m33-fio; # added 2016-08-13
|
2016-02-17 12:51:20 +00:00
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
m33-fio = buildPlugin rec {
|
2018-12-09 12:47:12 +00:00
|
|
|
pname = "M33-Fio";
|
2017-09-27 21:21:19 +00:00
|
|
|
version = "1.21";
|
2016-02-17 12:51:20 +00:00
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "donovan6000";
|
|
|
|
repo = "M33-Fio";
|
|
|
|
rev = "V${version}";
|
2017-09-27 21:21:19 +00:00
|
|
|
sha256 = "1la3611kkqn8yiwjn6cizc45ri8pnk6ckld1na4nk6mqk88jvjq7";
|
2016-08-13 00:04:10 +00:00
|
|
|
};
|
2016-02-17 13:43:44 +00:00
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
patches = [
|
|
|
|
./m33-fio-one-library.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm -rf octoprint_m33fio/static/libraries/*
|
|
|
|
(
|
|
|
|
cd 'shared library source'
|
|
|
|
make
|
|
|
|
)
|
|
|
|
'';
|
2016-02-17 13:43:44 +00:00
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "OctoPrint plugin for the Micro 3D printer";
|
2018-12-09 12:47:12 +00:00
|
|
|
homepage = https://github.com/donovan6000/M33-Fio;
|
2016-08-13 00:04:10 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
2016-02-17 13:43:44 +00:00
|
|
|
};
|
|
|
|
|
2018-12-06 05:05:27 +00:00
|
|
|
mqtt = buildPlugin rec {
|
2018-12-09 12:47:12 +00:00
|
|
|
pname = "MQTT";
|
2018-12-06 05:05:27 +00:00
|
|
|
version = "0.8.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OctoPrint";
|
|
|
|
repo = "OctoPrint-MQTT";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1318pgwy39gkdqgll3q5lwm7avslgdwyiwb5v8m23cgyh5w8cjq7";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python2Packages; [ paho-mqtt ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Publish printer status MQTT";
|
2018-12-09 12:47:12 +00:00
|
|
|
homepage = https://github.com/OctoPrint/OctoPrint-MQTT;
|
2018-12-06 05:05:27 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
titlestatus = buildPlugin rec {
|
2018-12-09 12:47:12 +00:00
|
|
|
pname = "TitleStatus";
|
2016-08-13 00:04:10 +00:00
|
|
|
version = "0.0.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MoonshineSG";
|
|
|
|
repo = "OctoPrint-TitleStatus";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1l78xrabn5hcly2mgxwi17nwgnp2s6jxi9iy4wnw8k8icv74ag7k";
|
|
|
|
};
|
2016-02-17 13:43:53 +00:00
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Show printers status in window title";
|
2018-12-09 12:47:12 +00:00
|
|
|
homepage = https://github.com/MoonshineSG/OctoPrint-TitleStatus;
|
2016-08-13 00:04:10 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
2016-02-17 13:43:53 +00:00
|
|
|
};
|
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
stlviewer = buildPlugin rec {
|
2018-12-09 12:47:12 +00:00
|
|
|
pname = "STLViewer";
|
2017-07-27 12:51:35 +00:00
|
|
|
version = "0.4.1";
|
2016-08-13 00:04:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jneilliii";
|
|
|
|
repo = "OctoPrint-STLViewer";
|
|
|
|
rev = "v${version}";
|
2017-07-27 12:51:35 +00:00
|
|
|
sha256 = "1f64s37g2d79g76v0vjnjrc2jp2gwrsnfgx7w3n0hkf1lz1pjkm0";
|
2016-08-13 00:04:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A simple stl viewer tab for OctoPrint";
|
2018-12-09 12:47:12 +00:00
|
|
|
homepage = https://github.com/jneilliii/Octoprint-STLViewer;
|
2016-08-13 00:04:10 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
2016-02-17 13:43:53 +00:00
|
|
|
};
|
2016-08-13 00:04:10 +00:00
|
|
|
|
2016-02-17 13:43:53 +00:00
|
|
|
};
|
|
|
|
|
2016-08-13 00:04:10 +00:00
|
|
|
in self
|