nixpkgs/pkgs/tools/misc/otfcc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
845 B
Nix
Raw Normal View History

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