uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
37
pkgs/tools/misc/marlin-calc/default.nix
Normal file
37
pkgs/tools/misc/marlin-calc/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "marlin-calc";
|
||||
version = "2019-10-17";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "eyal0";
|
||||
repo = "Marlin";
|
||||
rev = "3d5a5c86bea35a2a169eb56c70128bf2d070feef";
|
||||
sha256 = "14sqajm361gnrcqv84g7kbmyqm8pppbhqsabszc4j2cn7vbwkdg5";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# missing header for gcc >= 11
|
||||
sed -i '1i#include <limits>' Marlin/src/module/calc.cpp
|
||||
'';
|
||||
|
||||
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; {
|
||||
homepage = "https://github.com/eyal0/Marlin";
|
||||
description = "Marlin 3D printer timing simulator";
|
||||
license = licenses.gpl3;
|
||||
maintainers = with maintainers; [ gebner ];
|
||||
platforms = platforms.unix;
|
||||
broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/marlin-calc.x86_64-darwin
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue