2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, premake5 }:
|
2017-07-22 14:33:37 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "otfcc";
|
2020-04-14 23:02:11 -07:00
|
|
|
version = "0.10.4";
|
2017-07-22 14:33:37 -07:00
|
|
|
|
2017-12-03 21:42:17 -08:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "caryll";
|
|
|
|
repo = "otfcc";
|
|
|
|
rev = "v${version}";
|
2020-04-14 23:02:11 -07:00
|
|
|
sha256 = "1nrkzpqklfpqsccji4ans40rj88l80cv7dpxwx4g577xrvk13a0f";
|
2017-07-22 14:33:37 -07:00
|
|
|
};
|
|
|
|
|
2018-11-26 23:42:54 -08:00
|
|
|
nativeBuildInputs = [ premake5 ];
|
2017-07-22 14:33:37 -07:00
|
|
|
|
2020-08-07 09:25:26 -07:00
|
|
|
patches = [
|
|
|
|
./fix-aarch64.patch
|
|
|
|
./move-makefiles.patch
|
|
|
|
];
|
|
|
|
|
2021-01-15 01:19:50 -08:00
|
|
|
buildFlags = lib.optional stdenv.isAarch64 [ "config=release_arm" ];
|
2017-07-22 14:33:37 -07:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2020-08-07 09:25:26 -07:00
|
|
|
cp bin/release-*/otfcc* $out/bin/
|
2017-07-22 14:33:37 -07:00
|
|
|
'';
|
|
|
|
|
2017-11-26 16:07:53 -08:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-07-22 14:33:37 -07:00
|
|
|
description = "Optimized OpenType builder and inspector";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/caryll/otfcc";
|
2017-07-22 14:33:37 -07:00
|
|
|
license = licenses.asl20;
|
2020-08-07 09:25:26 -07:00
|
|
|
platforms = [ "aarch64-linux" "i686-linux" "x86_64-linux" "x86_64-darwin" ];
|
2017-11-20 09:06:51 -08:00
|
|
|
maintainers = with maintainers; [ jfrankenau ttuegel ];
|
2017-07-22 14:33:37 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|