phantomjs: add openssl to rpath

This commit is contained in:
Jason "Don" O'Conal 2013-10-02 05:17:32 +00:00
parent 62ea4e1d38
commit d4ba98abc9

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, freetype, fontconfig }:
{ stdenv, fetchurl, freetype, fontconfig, openssl }:
assert stdenv.lib.elem stdenv.system [ "i686-linux" "x86_64-linux" ];
@ -24,11 +24,12 @@ stdenv.mkDerivation rec {
buildPhase = ''
patchelf \
--set-interpreter "$(cat $NIX_GCC/nix-support/dynamic-linker)" \
--set-rpath ${freetype}/lib:${fontconfig}/lib:${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib \
--set-rpath "${freetype}/lib:${fontconfig}/lib:${stdenv.gcc.gcc}/lib64:${stdenv.gcc.gcc}/lib:${openssl}/lib" \
bin/phantomjs
'';
dontStrip = true;
dontPatchELF = true;
dontStrip = true;
installPhase = ''
mkdir -p $out/share/doc/phantomjs