nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchFromGitHub, premake5 }:
2
3stdenv.mkDerivation rec {
4 pname = "otfcc";
5 version = "0.10.4";
6
7 src = fetchFromGitHub {
8 owner = "caryll";
9 repo = "otfcc";
10 rev = "v${version}";
11 sha256 = "1nrkzpqklfpqsccji4ans40rj88l80cv7dpxwx4g577xrvk13a0f";
12 };
13
14 nativeBuildInputs = [ premake5 ];
15
16 patches = [
17 ./fix-aarch64.patch
18 ./move-makefiles.patch
19 ];
20
21 buildFlags = lib.optionals stdenv.isAarch64 [ "config=release_arm" ];
22
23 installPhase = ''
24 mkdir -p $out/bin
25 cp bin/release-*/otfcc* $out/bin/
26 '';
27
28 enableParallelBuilding = true;
29
30 meta = with lib; {
31 description = "Optimized OpenType builder and inspector";
32 homepage = "https://github.com/caryll/otfcc";
33 license = licenses.asl20;
34 platforms = platforms.unix;
35 maintainers = with maintainers; [ jfrankenau ttuegel ];
36 };
37
38}