summary refs log tree commit diff
path: root/pkgs/tools/misc/otfcc
diff options
context:
space:
mode:
authorJohannes Frankenau <johannes@frankenau.net>2017-07-22 23:33:37 +0200
committerThomas Tuegel <ttuegel@mailbox.org>2017-11-20 11:07:05 -0600
commit2110f96f9b836be0f1f0e99d1a605e3e32b972f9 (patch)
tree6b26f3ee55fc55125f9fda6718ebb09d7e282166 /pkgs/tools/misc/otfcc
parenteb857611378576f96022867a9fd15a7a841e518c (diff)
downloadnixpkgs-2110f96f9b836be0f1f0e99d1a605e3e32b972f9.tar
nixpkgs-2110f96f9b836be0f1f0e99d1a605e3e32b972f9.tar.gz
nixpkgs-2110f96f9b836be0f1f0e99d1a605e3e32b972f9.tar.bz2
nixpkgs-2110f96f9b836be0f1f0e99d1a605e3e32b972f9.tar.lz
nixpkgs-2110f96f9b836be0f1f0e99d1a605e3e32b972f9.tar.xz
nixpkgs-2110f96f9b836be0f1f0e99d1a605e3e32b972f9.tar.zst
nixpkgs-2110f96f9b836be0f1f0e99d1a605e3e32b972f9.zip
otfcc: init at 0.8.6
Diffstat (limited to 'pkgs/tools/misc/otfcc')
-rw-r--r--pkgs/tools/misc/otfcc/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/tools/misc/otfcc/default.nix b/pkgs/tools/misc/otfcc/default.nix
new file mode 100644
index 00000000000..d8345cddb36
--- /dev/null
+++ b/pkgs/tools/misc/otfcc/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchurl, premake5, hostPlatform }:
+
+stdenv.mkDerivation rec {
+  name = "otfcc-${version}";
+  version = "0.8.6";
+
+  src = fetchurl {
+    url = "https://github.com/caryll/otfcc/archive/v${version}.tar.gz";
+    sha256 = "0kap52bzrn21fmph8j2pc71f80f38ak1p2fcczzmrh0hb1r9c8dd";
+  };
+
+  nativeBuildInputs = [ premake5 ];
+
+  configurePhase = ''
+    premake5 gmake
+  '';
+
+  preBuild = "cd build/gmake";
+
+  makeFlags = ''config=release_${if hostPlatform.isi686 then "x86" else "x64"}'';
+
+  postBuild = "cd ../..";
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp bin/release-x*/otfcc* $out/bin/
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Optimized OpenType builder and inspector";
+    homepage = https://github.com/caryll/otfcc;
+    license = licenses.asl20;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ jfrankenau ];
+  };
+
+}