mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 15:24:39 +02:00
feat(octoprint): get octoprint plugin from my-features branch
This commit is contained in:
@@ -1,32 +1,12 @@
|
|||||||
{ ... }:
|
{ pkgs-my-features, ... }:
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [
|
|
||||||
(self: super: {
|
|
||||||
octoprint = super.octoprint.override {
|
|
||||||
packageOverrides = pyself: pysuper: {
|
|
||||||
octoprint-fanspeedslider = pyself.buildPythonPackage rec {
|
|
||||||
pname = "fanspeedslider";
|
|
||||||
version = "0.2.3";
|
|
||||||
src = self.fetchFromGitHub {
|
|
||||||
owner = "mival";
|
|
||||||
repo = "OctoPrint-FanSpeedSlider";
|
|
||||||
rev = "${version}";
|
|
||||||
sha256 = "sha256-0Gp9EgaKyCnRQv4A1sNHquTRqjag2Oz/fDGVVo95FfY=";
|
|
||||||
};
|
|
||||||
propagatedBuildInputs = [ pysuper.octoprint ];
|
|
||||||
pyproject = true;
|
|
||||||
doCheck = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
})
|
|
||||||
];
|
|
||||||
services.octoprint = {
|
services.octoprint = {
|
||||||
enable = true;
|
enable = true;
|
||||||
port = 8002;
|
port = 8002;
|
||||||
|
package = pkgs-my-features.octoprint;
|
||||||
plugins =
|
plugins =
|
||||||
plugins: with plugins; [
|
plugins: with plugins; [
|
||||||
octoprint-fanspeedslider
|
fanspeedslider
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user