about summary refs log tree commit diff
path: root/pkgs/applications/misc/xca
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2014-05-20 22:57:03 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2014-05-25 14:28:49 +0200
commit115b7313c5787c81a82ed43935cc819256da68cd (patch)
tree84d994899a9d9f10e94975b21d9c8a9c61184456 /pkgs/applications/misc/xca
parent5e460b2dee5fb531f5c43a895e9f879dfc14ab00 (diff)
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.
Diffstat (limited to 'pkgs/applications/misc/xca')
-rw-r--r--pkgs/applications/misc/xca/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/applications/misc/xca/default.nix b/pkgs/applications/misc/xca/default.nix
index fb6b011f30a42..0bc2170340c8f 100644
--- a/pkgs/applications/misc/xca/default.nix
+++ b/pkgs/applications/misc/xca/default.nix
@@ -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; {