From 80d397413d2c6068227083e00a6643430a7d284c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Fri, 7 Oct 2011 19:01:19 +0000 Subject: [PATCH] Boinc can even run, but only if placed in the proper (writeable) path. svn path=/nixpkgs/trunk/; revision=29712 --- .../science/misc/boinc/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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";