1 { lib, stdenvNoCC, fetchFromGitHub, python3, makeWrapper, unstableGitUpdater, nixosTests, useGpiod ? false }:
4 pythonEnv = python3.withPackages (packages:
17 preprocess-cancellation
24 in stdenvNoCC.mkDerivation rec {
26 version = "unstable-2023-12-27";
28 src = fetchFromGitHub {
31 rev = "c226e9c1e44d65ff6ea400b81e3cedba7f637976";
32 sha256 = "sha256-wdf4uab8pJEWaX6PFN9Y9pykmylmxJ4Oo5pwSQcyjCc=";
35 nativeBuildInputs = [ makeWrapper ];
38 mkdir -p $out $out/bin $out/lib
39 cp -r moonraker $out/lib
41 makeWrapper ${pythonEnv}/bin/python $out/bin/moonraker \
42 --add-flags "$out/lib/moonraker/moonraker.py"
46 updateScript = unstableGitUpdater { url = meta.homepage; };
47 tests.moonraker = nixosTests.moonraker;
51 description = "API web server for Klipper";
52 homepage = "https://github.com/Arksine/moonraker";
53 license = licenses.gpl3Only;
54 maintainers = with maintainers; [ zhaofengli ];
55 mainProgram = "moonraker";