2016-02-17 12:51:20 +00:00
|
|
|
{ stdenv, fetchFromGitHub, octoprint, pythonPackages }:
|
|
|
|
|
|
|
|
let
|
2016-02-19 12:12:11 +00:00
|
|
|
buildPlugin = args: pythonPackages.buildPythonApplication (args // {
|
2016-02-17 12:51:20 +00:00
|
|
|
buildInputs = (args.buildInputs or []) ++ [ octoprint ];
|
|
|
|
});
|
|
|
|
in {
|
|
|
|
|
|
|
|
m3d-fio = buildPlugin rec {
|
|
|
|
name = "M3D-Fio-${version}";
|
2016-04-30 00:58:28 +01:00
|
|
|
version = "0.32";
|
2016-02-17 12:51:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "donovan6000";
|
|
|
|
repo = "M3D-Fio";
|
|
|
|
rev = "V${version}";
|
2016-04-30 00:58:28 +01:00
|
|
|
sha256 = "1s15nx6v56yjwd88b19fx0gk1l0abp76nz10yicspdn91fpr1sf4";
|
2016-02-17 12:51:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./0001-Don-t-use-static-library.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
(
|
|
|
|
cd 'shared library source'
|
|
|
|
make
|
|
|
|
install -Dm755 libpreprocessor.so $out/lib/libpreprocessor.so
|
|
|
|
)
|
|
|
|
rm -rf $out/${pythonPackages.python.sitePackages}/octoprint_m3dfio/static/libraries
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-04-30 00:58:00 +01:00
|
|
|
homepage = "https://github.com/donovan6000/M3D-Fio";
|
|
|
|
description = "OctoPrint plugin for the Micro 3D printer";
|
2016-02-17 12:51:20 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-02-17 13:43:44 +00:00
|
|
|
titlestatus = buildPlugin rec {
|
|
|
|
name = "OctoPrint-TitleStatus-${version}";
|
2016-02-21 23:15:41 +00:00
|
|
|
version = "0.0.4";
|
2016-02-17 13:43:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MoonshineSG";
|
|
|
|
repo = "OctoPrint-TitleStatus";
|
|
|
|
rev = version;
|
2016-02-21 23:15:41 +00:00
|
|
|
sha256 = "1l78xrabn5hcly2mgxwi17nwgnp2s6jxi9iy4wnw8k8icv74ag7k";
|
2016-02-17 13:43:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/MoonshineSG/OctoPrint-TitleStatus;
|
|
|
|
description = "Show printers status in window title";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-02-17 13:43:53 +00:00
|
|
|
stlviewer = buildPlugin rec {
|
|
|
|
name = "OctoPrint-STLViewer-${version}";
|
|
|
|
version = "0.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jneilliii";
|
|
|
|
repo = "OctoPrint-STLViewer";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1a6sa8pw9ay7x27pfwr3nzb22x3jaw0c9vwyz4mrj76zkiw6svfi";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/jneilliii/Octoprint-STLViewer;
|
|
|
|
description = "A simple stl viewer tab for OctoPrint";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-02-17 12:51:20 +00:00
|
|
|
}
|