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:
Anton Arapov 2021-04-03 12:58:10 +02:00 committed by Alan Daniels
commit 56de2bcd43
30691 changed files with 3076956 additions and 0 deletions

View file

@ -0,0 +1,12 @@
diff --git a/ion/src/simulator/linux/Makefile b/ion/src/simulator/linux/Makefile
index ca7da03fa..b05bba115 100644
--- a/ion/src/simulator/linux/Makefile
+++ b/ion/src/simulator/linux/Makefile
@@ -28,7 +28,6 @@ ion_src += $(addprefix ion/src/simulator/shared/, \
collect_registers.cpp \
haptics.cpp \
journal.cpp \
- platform_action_modifier_ctrl.cpp \
state_file.cpp \
)

View file

@ -0,0 +1,63 @@
{ stdenv
, lib
, fetchFromGitHub
, libpng
, libjpeg
, freetype
, xorg
, python3
, imagemagick
, gcc-arm-embedded
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "numworks-epsilon";
version = "15.5.0";
src = fetchFromGitHub {
owner = "numworks";
repo = "epsilon";
rev = version;
sha256 = "fPBO3FzZ4k5OxG+Ifc6R/au4Te974HNKAEdHz+aFdSg=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libpng
libjpeg
freetype
xorg.libXext
python3
imagemagick
gcc-arm-embedded
];
makeFlags = [
"PLATFORM=simulator"
];
patches = [
# Remove make rule Introduced in cba596dde7
# which causes it to not build with nix
./0001-ion-linux-makerules.patch
];
installPhase = ''
runHook preInstall
mv ./output/release/simulator/linux/{epsilon.bin,epsilon}
mkdir -p $out/bin
cp -r ./output/release/simulator/linux/* $out/bin/
runHook postInstall
'';
meta = with lib; {
description = "Simulator for Epsilon, a High-performance graphing calculator operating system";
homepage = "https://numworks.com/";
license = licenses.cc-by-nc-sa-40;
maintainers = with maintainers; [ erikbackman ];
platforms = [ "x86_64-linux" ];
};
}