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