phantomjs: it seems upx packing is only used on x86_64

This commit is contained in:
Mathijs Kwik 2012-12-14 00:27:00 +01:00
parent 639edcb829
commit 4d57a834f9

View File

@ -21,10 +21,11 @@ stdenv.mkDerivation rec {
sha256 = "1m14czhi3b388didn0a881glsx8bnsg9gnxgj5lghr4l5mgqyrd7";
};
buildNativeInputs = [ upx ];
buildNativeInputs = stdenv.lib.optional (stdenv.system == "x86_64-linux") upx;
buildPhase = ''
buildPhase = stdenv.lib.optionalString (stdenv.system == "x86_64-linux") ''
upx -d bin/phantomjs
'' + ''
patchelf \
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath ${freetype}/lib:${fontconfig}/lib:${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib \