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

39 lines
936 B
Nix
Raw Normal View History

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