3
0
Fork 0
forked from mirrors/nixpkgs

Boinc can even run, but only if placed in the proper (writeable) path.

svn path=/nixpkgs/trunk/; revision=29712
This commit is contained in:
Lluís Batlle i Rossell 2011-10-07 19:01:19 +00:00
parent c286f9acb6
commit 80d397413d

View file

@ -1,5 +1,6 @@
{ fetchsvn, stdenv, autoconf, automake, pkgconfig, m4, curl, { 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 { stdenv.mkDerivation rec {
name = "boinc-6.13.6"; name = "boinc-6.13.6";
@ -11,7 +12,7 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ libtool automake autoconf m4 pkgconfig curl mesa libXmu libXi buildInputs = [ libtool automake autoconf m4 pkgconfig curl mesa libXmu libXi
freeglut libjpeg ]; freeglut libjpeg wxGTK sqlite gtk libXScrnSaver libnotify patchelf libX11 ];
postConfigure = '' postConfigure = ''
sed -i -e s,/etc,$out/etc, client/scripts/Makefile sed -i -e s,/etc,$out/etc, client/scripts/Makefile
@ -22,7 +23,19 @@ stdenv.mkDerivation rec {
configureFlags="$configureFlags --sysconfdir=$out/etc" 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 = { meta = {
description = "Free software for distributed and grid computing"; description = "Free software for distributed and grid computing";