summary refs log tree commit diff
path: root/pkgs/tools/misc/otfcc
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-11-27 01:42:54 -0600
committerMatthew Bauer <mjbauer95@gmail.com>2018-11-28 20:14:32 -0600
commit9d2c6ea47a146cb6e10c4d4ec08179cf18dc26fe (patch)
tree7425c7748804767f709dccbfe5542ae21a2981ce /pkgs/tools/misc/otfcc
parent0984032d6ae2d87b8a032a75f783942da2279235 (diff)
downloadnixpkgs-9d2c6ea47a146cb6e10c4d4ec08179cf18dc26fe.tar
nixpkgs-9d2c6ea47a146cb6e10c4d4ec08179cf18dc26fe.tar.gz
nixpkgs-9d2c6ea47a146cb6e10c4d4ec08179cf18dc26fe.tar.bz2
nixpkgs-9d2c6ea47a146cb6e10c4d4ec08179cf18dc26fe.tar.lz
nixpkgs-9d2c6ea47a146cb6e10c4d4ec08179cf18dc26fe.tar.xz
nixpkgs-9d2c6ea47a146cb6e10c4d4ec08179cf18dc26fe.tar.zst
nixpkgs-9d2c6ea47a146cb6e10c4d4ec08179cf18dc26fe.zip
otfcc: use premake setup hook
Diffstat (limited to 'pkgs/tools/misc/otfcc')
-rw-r--r--pkgs/tools/misc/otfcc/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/tools/misc/otfcc/default.nix b/pkgs/tools/misc/otfcc/default.nix
index acf46a58a6b..96e5e6a1d94 100644
--- a/pkgs/tools/misc/otfcc/default.nix
+++ b/pkgs/tools/misc/otfcc/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, premake5, ninja }:
+{ stdenv, fetchFromGitHub, premake5 }:
 
 stdenv.mkDerivation rec {
   name = "otfcc-${version}";
@@ -11,15 +11,15 @@ stdenv.mkDerivation rec {
     sha256 = "1rnjfqqyc6d9nhlh8if9k37wk94mcwz4wf3k239v6idg48nrk10b";
   };
 
-  nativeBuildInputs = [ premake5 ninja ];
+  nativeBuildInputs = [ premake5 ];
 
-  configurePhase = ''
-    premake5 ninja
+  # Don’t guess where our makefiles will end up. Just use current
+  # directory.
+  patchPhase = ''
+    substituteInPlace premake5.lua \
+      --replace 'location "build/gmake"' 'location "."'
   '';
 
-  ninjaFlags = let x = if stdenv.hostPlatform.isi686 then "x86" else "x64"; in
-    [ "-C" "build/ninja" "otfccdump_release_${x}" "otfccbuild_release_${x}" ];
-
   installPhase = ''
     mkdir -p $out/bin
     cp bin/release-x*/otfcc* $out/bin/