summary refs log tree commit diff
path: root/pkgs/development/tools/misc/arcanist
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2018-01-06 16:49:26 +0100
committerRobin Gloster <mail@glob.in>2018-01-06 17:25:15 +0100
commit3a5c48960387adc555dca6b0ee67a3109c9069f3 (patch)
tree22aa6fa28099970c3bb686967658fd3522eba034 /pkgs/development/tools/misc/arcanist
parent6e8021d412f559adef6d9579b44c059de72e5af0 (diff)
downloadnixpkgs-3a5c48960387adc555dca6b0ee67a3109c9069f3.tar
nixpkgs-3a5c48960387adc555dca6b0ee67a3109c9069f3.tar.gz
nixpkgs-3a5c48960387adc555dca6b0ee67a3109c9069f3.tar.bz2
nixpkgs-3a5c48960387adc555dca6b0ee67a3109c9069f3.tar.lz
nixpkgs-3a5c48960387adc555dca6b0ee67a3109c9069f3.tar.xz
nixpkgs-3a5c48960387adc555dca6b0ee67a3109c9069f3.tar.zst
nixpkgs-3a5c48960387adc555dca6b0ee67a3109c9069f3.zip
arcanist: fix on aarch64
Diffstat (limited to 'pkgs/development/tools/misc/arcanist')
-rw-r--r--pkgs/development/tools/misc/arcanist/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/arcanist/default.nix b/pkgs/development/tools/misc/arcanist/default.nix
index 760ad521cef..15b8f82d0ab 100644
--- a/pkgs/development/tools/misc/arcanist/default.nix
+++ b/pkgs/development/tools/misc/arcanist/default.nix
@@ -21,11 +21,18 @@ stdenv.mkDerivation rec {
   src = [ arcanist libphutil ];
   buildInputs = [ php makeWrapper flex ];
 
-  unpackPhase = "true";
-  buildPhase = ''
+  unpackPhase = ''
     cp -R ${libphutil} libphutil
     cp -R ${arcanist} arcanist
     chmod +w -R libphutil arcanist
+  '';
+
+  postPatch = stdenv.lib.optionalString stdenv.isAarch64 ''
+    substituteInPlace libphutil/support/xhpast/Makefile \
+      --replace "-minline-all-stringops" ""
+  '';
+
+  buildPhase = ''
     (
       cd libphutil/support/xhpast
       make clean all install