1 { lib, stdenvNoCC, fetchFromGitHub, python3, makeWrapper, unstableGitUpdater, nixosTests, useGpiod ? false }:
4 pythonEnv = python3.withPackages (packages:
17 preprocess-cancellation
25 in stdenvNoCC.mkDerivation rec {
27 version = "0.8.0-unstable-2023-12-27";
29 src = fetchFromGitHub {
32 rev = "c226e9c1e44d65ff6ea400b81e3cedba7f637976";
33 sha256 = "sha256-wdf4uab8pJEWaX6PFN9Y9pykmylmxJ4Oo5pwSQcyjCc=";
36 nativeBuildInputs = [ makeWrapper ];
39 mkdir -p $out $out/bin $out/lib
40 cp -r moonraker $out/lib
42 makeWrapper ${pythonEnv}/bin/python $out/bin/moonraker \
43 --add-flags "$out/lib/moonraker/moonraker.py"
47 updateScript = unstableGitUpdater {
51 tests.moonraker = nixosTests.moonraker;
55 description = "API web server for Klipper";
56 homepage = "https://github.com/Arksine/moonraker";
57 license = licenses.gpl3Only;
58 maintainers = with maintainers; [ zhaofengli ];
59 mainProgram = "moonraker";