2018-11-27 08:42:54 +01:00
|
|
|
|
{ stdenv, fetchFromGitHub, premake5 }:
|
2017-07-22 23:33:37 +02:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
|
pname = "otfcc";
|
2020-04-15 08:02:11 +02:00
|
|
|
|
version = "0.10.4";
|
2017-07-22 23:33:37 +02:00
|
|
|
|
|
2017-12-04 06:42:17 +01:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "caryll";
|
|
|
|
|
repo = "otfcc";
|
|
|
|
|
rev = "v${version}";
|
2020-04-15 08:02:11 +02:00
|
|
|
|
sha256 = "1nrkzpqklfpqsccji4ans40rj88l80cv7dpxwx4g577xrvk13a0f";
|
2017-07-22 23:33:37 +02:00
|
|
|
|
};
|
|
|
|
|
|
2018-11-27 08:42:54 +01:00
|
|
|
|
nativeBuildInputs = [ premake5 ];
|
2017-07-22 23:33:37 +02:00
|
|
|
|
|
2018-11-27 08:42:54 +01:00
|
|
|
|
# Don’t guess where our makefiles will end up. Just use current
|
|
|
|
|
# directory.
|
|
|
|
|
patchPhase = ''
|
|
|
|
|
substituteInPlace premake5.lua \
|
|
|
|
|
--replace 'location "build/gmake"' 'location "."'
|
2017-07-22 23:33:37 +02:00
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
|
cp bin/release-x*/otfcc* $out/bin/
|
|
|
|
|
'';
|
|
|
|
|
|
2017-11-27 01:07:53 +01:00
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
2017-07-22 23:33:37 +02:00
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
|
description = "Optimized OpenType builder and inspector";
|
2020-04-01 03:11:51 +02:00
|
|
|
|
homepage = "https://github.com/caryll/otfcc";
|
2017-07-22 23:33:37 +02:00
|
|
|
|
license = licenses.asl20;
|
2017-11-27 01:07:53 +01:00
|
|
|
|
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
|
2017-11-20 18:06:51 +01:00
|
|
|
|
maintainers = with maintainers; [ jfrankenau ttuegel ];
|
2017-07-22 23:33:37 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|