Merge pull request #1033 from lovek323/phantomjs

phantomjs: add openssl to rpath
This commit is contained in:
Mathijs Kwik 2013-10-01 23:43:18 -07:00
commit cbcba0a2f8

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