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
38
pkgs/tools/misc/otfcc/default.nix
Normal file
38
pkgs/tools/misc/otfcc/default.nix
Normal 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 ];
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue