2020-04-24 23:36:52 +00:00
|
|
|
{ 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 ];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
patches = [
|
|
|
|
./fix-aarch64.patch
|
|
|
|
./move-makefiles.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
buildFlags = stdenv.lib.optional stdenv.isAarch64 [ "config=release_arm" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2020-08-20 17:08:02 +00:00
|
|
|
cp bin/release-*/otfcc* $out/bin/
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Optimized OpenType builder and inspector";
|
|
|
|
homepage = "https://github.com/caryll/otfcc";
|
|
|
|
license = licenses.asl20;
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = [ "aarch64-linux" "i686-linux" "x86_64-linux" "x86_64-darwin" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ jfrankenau ttuegel ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|