2011-10-06 22:25:05 +02:00
|
|
|
{ fetchsvn, stdenv, autoconf, automake, pkgconfig, m4, curl,
|
2011-10-07 21:01:19 +02:00
|
|
|
mesa, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK,
|
|
|
|
sqlite, gtk, patchelf, libXScrnSaver, libnotify, libX11 }:
|
2011-10-06 22:25:05 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-10-13 10:58:45 +02:00
|
|
|
name = "boinc-6.12.39";
|
2011-10-06 22:25:05 +02:00
|
|
|
|
|
|
|
src = fetchsvn {
|
2011-10-13 10:58:45 +02:00
|
|
|
url = "http://boinc.berkeley.edu/svn/tags/boinc_core_release_6_12_39";
|
2011-10-06 22:25:05 +02:00
|
|
|
rev = 24341;
|
2011-10-13 10:58:45 +02:00
|
|
|
sha256 = "158fkm4mr7wljsy8gav20km8jamf00mxjk1wsiqw6kx62bih37yb";
|
2011-10-06 22:25:05 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libtool automake autoconf m4 pkgconfig curl mesa libXmu libXi
|
2011-10-07 21:01:19 +02:00
|
|
|
freeglut libjpeg wxGTK sqlite gtk libXScrnSaver libnotify patchelf libX11 ];
|
2011-10-06 22:25:05 +02:00
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
sed -i -e s,/etc,$out/etc, client/scripts/Makefile
|
|
|
|
'';
|
|
|
|
|
2011-10-07 21:01:27 +02:00
|
|
|
NIX_LDFLAGS = "-lX11";
|
|
|
|
|
2011-10-06 22:25:05 +02:00
|
|
|
preConfigure = ''
|
|
|
|
./_autosetup
|
|
|
|
configureFlags="$configureFlags --sysconfdir=$out/etc"
|
|
|
|
'';
|
|
|
|
|
2011-10-07 21:01:19 +02:00
|
|
|
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
|
|
|
|
";
|
2011-10-06 22:25:05 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Free software for distributed and grid computing";
|
|
|
|
|
|
|
|
homepage = http://boinc.berkeley.edu/;
|
|
|
|
|
|
|
|
license = "LGPLv2+";
|
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.linux; # arbitrary choice
|
|
|
|
};
|
|
|
|
}
|