mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(logistics): remove octoprint
This commit is contained in:
parent
6e4118dec5
commit
1bbe964f6a
8 changed files with 83 additions and 51 deletions
|
|
@ -15,7 +15,7 @@ in {
|
|||
};
|
||||
packageOverrides = python3Packages: python3Packages'prev:
|
||||
lib.mapAttrs (mapPlugin python3Packages) {
|
||||
inherit (final.octoprintPlugins) prometheus-exporter octorant queue printtimegenius;
|
||||
inherit (final.octoprintPlugins) prometheus-exporter octorant queue printtimegenius octoklipper;
|
||||
};
|
||||
octoprint = prev.octoprint.override (old: {
|
||||
packageOverrides = lib.composeExtensions old.packageOverrides or (_: _: {}) packageOverrides;
|
||||
|
|
@ -55,6 +55,23 @@ in {
|
|||
});
|
||||
in
|
||||
callPackage printtimegenius {};
|
||||
octoklipper = let
|
||||
octoklipper = {
|
||||
fetchFromGitHub,
|
||||
python3Packages,
|
||||
buildPlugin,
|
||||
}:
|
||||
octoprintPlugins.octoklipper.overrideAttrs (old: rec {
|
||||
name = "${old.pname}-${version}";
|
||||
version = lib.warnIf (lib.versionAtLeast old.version "0.3.8.4") "octoklipper updated upstream" "0.3.9.5";
|
||||
src = fetchFromGitHub {
|
||||
inherit (old.src) owner repo;
|
||||
rev = version;
|
||||
sha256 = "sha256-Ctxg6jyrXIR9sQQDu/Tjo+6+pOuSKgdDTYbnOKlU5ak=";
|
||||
};
|
||||
});
|
||||
in
|
||||
callPackage octoklipper {};
|
||||
};
|
||||
|
||||
# XXX: build broken upstream ugh...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue