1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/science/misc/boinc/default.nix

52 lines
1.4 KiB
Nix
Raw Normal View History

{ fetchgit, stdenv, autoconf, automake, pkgconfig, m4, curl,
mesa, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK,
sqlite, gtk, patchelf, libXScrnSaver, libnotify, libX11 }:
stdenv.mkDerivation rec {
name = "boinc-7.0.44";
src = fetchgit {
url = "git://boinc.berkeley.edu/boinc.git";
rev = "7c449b1fb8a681ceb27d6895751b62a2b3adf0f2";
sha256 = "0hdramyl9nip3gadp7xiaz8ngyld15i93d8ai1nsd04bmrvdfqia";
};
buildInputs = [ libtool automake autoconf m4 pkgconfig curl mesa libXmu libXi
freeglut libjpeg wxGTK sqlite gtk libXScrnSaver libnotify patchelf libX11 ];
postConfigure = ''
sed -i -e s,/etc,$out/etc, client/scripts/Makefile
'';
NIX_LDFLAGS = "-lX11";
preConfigure = ''
./_autosetup
configureFlags="$configureFlags --sysconfdir=$out/etc"
'';
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";
homepage = http://boinc.berkeley.edu/;
license = "LGPLv2+";
platforms = stdenv.lib.platforms.linux; # arbitrary choice
};
}