9 version = "2019-10-17";
11 src = fetchFromGitHub {
14 rev = "3d5a5c86bea35a2a169eb56c70128bf2d070feef";
15 sha256 = "14sqajm361gnrcqv84g7kbmyqm8pppbhqsabszc4j2cn7vbwkdg5";
19 # missing header for gcc >= 11
20 sed -i '1i#include <limits>' Marlin/src/module/calc.cpp
25 c++ module/planner.cpp module/calc.cpp feature/fwretract.cpp \
26 -O2 -Wall -std=gnu++11 -o marlin-calc
30 install -Dm0755 {,$out/bin/}marlin-calc
34 homepage = "https://github.com/eyal0/Marlin";
35 description = "Marlin 3D printer timing simulator";
36 license = licenses.gpl3;
37 maintainers = with maintainers; [ gebner ];
38 platforms = platforms.unix;
39 broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/marlin-calc.x86_64-darwin
40 mainProgram = "marlin-calc";