mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
88 lines
2.3 KiB
Nix
88 lines
2.3 KiB
Nix
{ stdenv, fetchFromGitHub, octoprint, pythonPackages }:
|
|
|
|
let
|
|
buildPlugin = args: pythonPackages.buildPythonApplication (args // {
|
|
buildInputs = (args.buildInputs or []) ++ [ octoprint ];
|
|
});
|
|
|
|
self = {
|
|
|
|
# Deprecated alias
|
|
m3d-fio = self.m33-fio; # added 2016-08-13
|
|
|
|
m33-fio = buildPlugin rec {
|
|
name = "M33-Fio-${version}";
|
|
version = "1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "donovan6000";
|
|
repo = "M33-Fio";
|
|
rev = "V${version}";
|
|
sha256 = "14sqvgrpf3zvgycjj7f3m7m2flx06zq4h0yhq4g18av0zbsrv7yp";
|
|
};
|
|
|
|
patches = [
|
|
./m33-fio-one-library.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
rm -rf octoprint_m33fio/static/libraries/*
|
|
(
|
|
cd 'shared library source'
|
|
make
|
|
)
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://github.com/donovan6000/M3D-Fio";
|
|
description = "OctoPrint plugin for the Micro 3D printer";
|
|
platforms = platforms.all;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
};
|
|
|
|
titlestatus = buildPlugin rec {
|
|
name = "OctoPrint-TitleStatus-${version}";
|
|
version = "0.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MoonshineSG";
|
|
repo = "OctoPrint-TitleStatus";
|
|
rev = version;
|
|
sha256 = "1l78xrabn5hcly2mgxwi17nwgnp2s6jxi9iy4wnw8k8icv74ag7k";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
in self
|