xca: fix package

For some reason library paths are not set at all for some libraries during
the build. Wrapper with LD_LIBRARY_PATH set for relevant libraries is currently
solution.
This commit is contained in:
Jaka Hudoklin 2014-05-20 22:57:03 +02:00 committed by Bjørn Forsman
parent 5e460b2dee
commit 115b7313c5

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, which, openssl, qt4, libtool }:
{ stdenv, fetchurl, pkgconfig, which, openssl, qt4, libtool, gcc, makeWrapper }:
stdenv.mkDerivation rec {
name = "xca-${version}";
@ -15,7 +15,12 @@ stdenv.mkDerivation rec {
prefix=$out ./configure ${openssl} ${libtool}
'';
buildInputs = [ openssl qt4 libtool ];
postInstall = ''
wrapProgram "$out/bin/xca" \
--prefix LD_LIBRARY_PATH : "${qt4}/lib:${gcc.gcc}/lib:${gcc.gcc}/lib64:${openssl}/lib:${libtool}/lib"
'';
buildInputs = [ openssl qt4 libtool gcc makeWrapper ];
nativeBuildInputs = [ pkgconfig ];
meta = with stdenv.lib; {