mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(octoprint): motion and notifs
This commit is contained in:
parent
6bf729ffe9
commit
7fe6d48ff0
11 changed files with 263 additions and 47 deletions
|
|
@ -11,7 +11,7 @@ in {
|
|||
inherit (python3Packages) buildPlugin;
|
||||
};
|
||||
packageOverrides = python3Packages: python3Packages'prev: lib.mapAttrs (mapPlugin python3Packages) {
|
||||
inherit (final.octoprintPlugins) prometheus-exporter octorant;
|
||||
inherit (final.octoprintPlugins) prometheus-exporter octorant queue printtimegenius;
|
||||
};
|
||||
octoprint = prev.octoprint.override (old: {
|
||||
packageOverrides = lib.composeExtensions old.packageOverrides or (_: _: {}) packageOverrides;
|
||||
|
|
@ -31,8 +31,20 @@ in {
|
|||
|
||||
prometheus-exporter = callPackage ../packages/octoprint/prometheus-exporter.nix { };
|
||||
octorant = callPackage ../packages/octoprint/octorant.nix { };
|
||||
queue = callPackage ../packages/octoprint/queue.nix { };
|
||||
printtimegenius = let
|
||||
printtimegenius = { fetchFromGitHub, python3Packages, buildPlugin }: octoprintPlugins.printtimegenius.overrideAttrs (old: rec {
|
||||
version = lib.warnIf (lib.versionAtLeast old.version "2.3.2") "printtimegenius updated upstream" "2.3.3";
|
||||
src = fetchFromGitHub {
|
||||
inherit (old.src) owner repo;
|
||||
rev = version;
|
||||
sha256 = "sha256-hqm8RShCNpsVbrVXquat5VXqcVc7q5tn5+7Ipqmaw4U=";
|
||||
};
|
||||
});
|
||||
in callPackage printtimegenius { };
|
||||
};
|
||||
|
||||
# XXX: build broken upstream ugh...
|
||||
curaengine = prev.curaengine.override {
|
||||
inherit (final.python311Packages) libarcus;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue