2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, premake5 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildFlags = lib.optionals 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;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Optimized OpenType builder and inspector";
|
|
|
|
homepage = "https://github.com/caryll/otfcc";
|
|
|
|
license = licenses.asl20;
|
2021-05-28 09:39:13 +00:00
|
|
|
platforms = platforms.unix;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|