nixpkgs/pkgs/tools/misc/marlin-calc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2019-07-07 14:45:20 +02:00
2019-08-13 23:52:01 +02:00
stdenv.mkDerivation {
2019-07-07 14:45:20 +02:00
pname = "marlin-calc";
2019-11-02 17:53:43 +01:00
version = "2019-10-17";
2019-07-07 14:45:20 +02:00
src = fetchFromGitHub {
owner = "eyal0";
repo = "Marlin";
2019-11-02 17:53:43 +01:00
rev = "3d5a5c86bea35a2a169eb56c70128bf2d070feef";
sha256 = "14sqajm361gnrcqv84g7kbmyqm8pppbhqsabszc4j2cn7vbwkdg5";
2019-07-07 14:45:20 +02:00
};
2022-05-21 16:54:06 +02:00
postPatch = ''
# missing header for gcc >= 11
sed -i '1i#include <limits>' Marlin/src/module/calc.cpp
'';
2019-07-07 14:45:20 +02:00
buildPhase = ''
cd Marlin/src
c++ module/planner.cpp module/calc.cpp feature/fwretract.cpp \
-O2 -Wall -std=gnu++11 -o marlin-calc
'';
installPhase = ''
install -Dm0755 {,$out/bin/}marlin-calc
'';
meta = with lib; {
2019-07-07 14:45:20 +02:00
homepage = "https://github.com/eyal0/Marlin";
description = "Marlin 3D printer timing simulator";
license = licenses.gpl3;
maintainers = with maintainers; [ gebner ];
platforms = platforms.unix;
2022-02-02 19:07:04 +01:00
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/marlin-calc.x86_64-darwin
2023-11-27 02:17:53 +01:00
mainProgram = "marlin-calc";
2019-07-07 14:45:20 +02:00
};
}