diff --git a/pkgs/applications/science/misc/boinc/default.nix b/pkgs/applications/science/misc/boinc/default.nix index bd6e5b2a9f0e..6dfcbb0656eb 100644 --- a/pkgs/applications/science/misc/boinc/default.nix +++ b/pkgs/applications/science/misc/boinc/default.nix @@ -1,5 +1,6 @@ { fetchsvn, stdenv, autoconf, automake, pkgconfig, m4, curl, -mesa, libXmu, libXi, freeglut, libjpeg, libtool }: +mesa, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK, +sqlite, gtk, patchelf, libXScrnSaver, libnotify, libX11 }: stdenv.mkDerivation rec { name = "boinc-6.13.6"; @@ -11,7 +12,7 @@ stdenv.mkDerivation rec { }; buildInputs = [ libtool automake autoconf m4 pkgconfig curl mesa libXmu libXi - freeglut libjpeg ]; + freeglut libjpeg wxGTK sqlite gtk libXScrnSaver libnotify patchelf libX11 ]; postConfigure = '' sed -i -e s,/etc,$out/etc, client/scripts/Makefile @@ -22,7 +23,19 @@ stdenv.mkDerivation rec { configureFlags="$configureFlags --sysconfdir=$out/etc" ''; - configureFlags = "--disable-server"; + enableParallelBuilding = true; + + configureFlags = "--disable-server --disable-fast-install"; + + postInstall = " + # Remove a leading rpath to /tmp/... I don't know how it got there + # I could not manage to get rid of that through autotools. + for a in $out/bin/*; do + RPATH=$(patchelf --print-rpath $a) + NEWRPATH=$(echo $RPATH | sed 's/^[^:]*://') + patchelf --set-rpath $out/lib:$NEWRPATH $a + done + "; meta = { description = "Free software for distributed and grid computing";