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,38 @@
{ lib, stdenv, fetchFromGitHub, premake5 }:
stdenv.mkDerivation rec {
pname = "otfcc";
version = "0.10.4";
src = fetchFromGitHub {
owner = "caryll";
repo = "otfcc";
rev = "v${version}";
sha256 = "1nrkzpqklfpqsccji4ans40rj88l80cv7dpxwx4g577xrvk13a0f";
};
nativeBuildInputs = [ premake5 ];
patches = [
./fix-aarch64.patch
./move-makefiles.patch
];
buildFlags = lib.optional stdenv.isAarch64 [ "config=release_arm" ];
installPhase = ''
mkdir -p $out/bin
cp bin/release-*/otfcc* $out/bin/
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Optimized OpenType builder and inspector";
homepage = "https://github.com/caryll/otfcc";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ jfrankenau ttuegel ];
};
}

View file

@ -0,0 +1,22 @@
diff --git a/premake5.lua b/premake5.lua
index 997fd79..54a20a0 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -49,7 +49,7 @@ end
workspace "otfcc"
configurations { "release", "debug" }
- platforms { "x64", "x86" }
+ platforms { "x64", "x86", "arm" }
filter "action:xcode4"
platforms { "x64" }
filter {}
@@ -67,6 +67,8 @@ workspace "otfcc"
architecture "x86"
filter "platforms:x64"
architecture "x64"
+ filter "platforms:arm"
+ architecture "arm"
filter {}
filter "action:vs2017"

View file

@ -0,0 +1,13 @@
diff --git a/premake5.lua b/premake5.lua
index 997fd79..54a20a0 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -88,7 +90,7 @@ workspace "otfcc"
flags { "StaticRuntime" }
includedirs { "dep/polyfill-msvc" }
filter "action:gmake"
- location "build/gmake"
+ location "."
filter "action:xcode4"
location "build/xcode"
filter {}