2017-03-24 13:35:34 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, octoprint, pythonPackages }:
|
2016-02-17 13:51:20 +01:00
|
|
|
|
|
|
|
let
|
2016-02-19 13:12:11 +01:00
|
|
|
buildPlugin = args: pythonPackages.buildPythonApplication (args // {
|
2016-02-17 13:51:20 +01:00
|
|
|
buildInputs = (args.buildInputs or []) ++ [ octoprint ];
|
|
|
|
});
|
|
|
|
|
2016-08-13 02:04:10 +02:00
|
|
|
self = {
|
2016-02-17 13:51:20 +01:00
|
|
|
|
2016-08-13 02:04:10 +02:00
|
|
|
# Deprecated alias
|
|
|
|
m3d-fio = self.m33-fio; # added 2016-08-13
|
2016-02-17 13:51:20 +01:00
|
|
|
|
2016-08-13 02:04:10 +02:00
|
|
|
m33-fio = buildPlugin rec {
|
|
|
|
name = "M33-Fio-${version}";
|
2017-01-29 18:03:38 +01:00
|
|
|
version = "1.17";
|
2016-02-17 13:51:20 +01:00
|
|
|
|
2016-08-13 02:04:10 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "donovan6000";
|
|
|
|
repo = "M33-Fio";
|
|
|
|
rev = "V${version}";
|
2017-01-29 18:03:38 +01:00
|
|
|
sha256 = "19r860hqax09a79s9bl181ab7jsgx0pa8fvnr62lbgkwhis7m8mh";
|
2016-08-13 02:04:10 +02:00
|
|
|
};
|
2016-02-17 14:43:44 +01:00
|
|
|
|
2016-08-13 02:04:10 +02:00
|
|
|
patches = [
|
|
|
|
./m33-fio-one-library.patch
|
2017-03-24 13:35:34 +01:00
|
|
|
# Fix incompatibility with new OctoPrint
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/foosel/M33-Fio/commit/bdf2422dee3fb8e53b33f087f734956c3b209d72.patch";
|
|
|
|
sha256 = "0jm415sx6d3m0z4gfhbnxlasg08zf3f3mslaj4amn9wbvsik9s5d";
|
|
|
|
})
|
2016-08-13 02:04:10 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm -rf octoprint_m33fio/static/libraries/*
|
|
|
|
(
|
|
|
|
cd 'shared library source'
|
|
|
|
make
|
|
|
|
)
|
|
|
|
'';
|
2016-02-17 14:43:44 +01:00
|
|
|
|
2016-08-13 02:04:10 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-01-29 18:03:38 +01:00
|
|
|
homepage = "https://github.com/donovan6000/M33-Fio";
|
2016-08-13 02:04:10 +02:00
|
|
|
description = "OctoPrint plugin for the Micro 3D printer";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
2016-02-17 14:43:44 +01:00
|
|
|
};
|
|
|
|
|
2016-08-13 02:04:10 +02:00
|
|
|
titlestatus = buildPlugin rec {
|
|
|
|
name = "OctoPrint-TitleStatus-${version}";
|
|
|
|
version = "0.0.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MoonshineSG";
|
|
|
|
repo = "OctoPrint-TitleStatus";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1l78xrabn5hcly2mgxwi17nwgnp2s6jxi9iy4wnw8k8icv74ag7k";
|
|
|
|
};
|
2016-02-17 14:43:53 +01:00
|
|
|
|
2016-08-13 02:04:10 +02: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 14:43:53 +01:00
|
|
|
};
|
|
|
|
|
2016-08-13 02:04:10 +02: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 14:43:53 +01:00
|
|
|
};
|
2016-08-13 02:04:10 +02:00
|
|
|
|
2016-02-17 14:43:53 +01:00
|
|
|
};
|
|
|
|
|
2016-08-13 02:04:10 +02:00
|
|
|
in self
|