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