nixpkgs/pkgs/applications/misc/octoprint/plugins.nix

88 lines
2.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, fetchpatch, octoprint, pythonPackages }:
let
buildPlugin = args: pythonPackages.buildPythonApplication (args // {
buildInputs = (args.buildInputs or []) ++ [ octoprint ];
});
2016-08-13 00:04:10 +00:00
self = {
2016-08-13 00:04:10 +00:00
# Deprecated alias
m3d-fio = self.m33-fio; # added 2016-08-13
2016-08-13 00:04:10 +00:00
m33-fio = buildPlugin rec {
name = "M33-Fio-${version}";
version = "1.20";
2016-08-13 00:04:10 +00:00
src = fetchFromGitHub {
owner = "donovan6000";
repo = "M33-Fio";
rev = "V${version}";
sha256 = "1ng7lzlkqsjcr1w7wgzwsqkkvcvpajcj2cwqlffh95916sw8n767";
2016-08-13 00:04:10 +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-08-13 00:04:10 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/donovan6000/M33-Fio;
2016-08-13 00:04:10 +00:00
description = "OctoPrint plugin for the Micro 3D printer";
platforms = platforms.all;
license = licenses.gpl3;
maintainers = with maintainers; [ abbradar ];
};
};
2016-08-13 00:04:10 +00:00
titlestatus = buildPlugin rec {
name = "OctoPrint-TitleStatus-${version}";
version = "0.0.4";
src = fetchFromGitHub {
owner = "MoonshineSG";
repo = "OctoPrint-TitleStatus";
rev = version;
sha256 = "1l78xrabn5hcly2mgxwi17nwgnp2s6jxi9iy4wnw8k8icv74ag7k";
};
2016-08-13 00:04:10 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/MoonshineSG/OctoPrint-TitleStatus;
2016-08-13 00:04:10 +00:00
description = "Show printers status in window title";
platforms = platforms.all;
license = licenses.agpl3;
maintainers = with maintainers; [ abbradar ];
};
};
2016-08-13 00:04:10 +00:00
stlviewer = buildPlugin rec {
name = "OctoPrint-STLViewer-${version}";
version = "0.4.1";
2016-08-13 00:04:10 +00:00
src = fetchFromGitHub {
owner = "jneilliii";
repo = "OctoPrint-STLViewer";
rev = "v${version}";
sha256 = "1f64s37g2d79g76v0vjnjrc2jp2gwrsnfgx7w3n0hkf1lz1pjkm0";
2016-08-13 00:04:10 +00:00
};
meta = with stdenv.lib; {
homepage = https://github.com/jneilliii/Octoprint-STLViewer;
2016-08-13 00:04:10 +00:00
description = "A simple stl viewer tab for OctoPrint";
platforms = platforms.all;
license = licenses.agpl3;
maintainers = with maintainers; [ abbradar ];
};
};
2016-08-13 00:04:10 +00:00
};
2016-08-13 00:04:10 +00:00
in self