2015-07-20 18:25:41 +01:00
|
|
|
{ fetchFromGitHub, stdenv, autoconf, automake, pkgconfig, m4, curl,
|
2013-01-08 22:26:24 +00:00
|
|
|
mesa, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK, xcbutil,
|
2016-09-11 22:24:51 +01:00
|
|
|
sqlite, gtk2, patchelf, libXScrnSaver, libnotify, libX11, libxcb }:
|
2011-10-06 21:25:05 +01:00
|
|
|
|
2017-06-20 04:19:31 +01:00
|
|
|
let
|
|
|
|
majorVersion = "7.8";
|
|
|
|
minorVersion = "0";
|
|
|
|
in
|
|
|
|
|
2011-10-06 21:25:05 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-06-20 04:19:31 +01:00
|
|
|
version = "${majorVersion}.${minorVersion}";
|
2015-07-20 18:25:41 +01:00
|
|
|
name = "boinc-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-06-20 04:19:31 +01:00
|
|
|
name = "${name}-src";
|
2015-07-20 18:25:41 +01:00
|
|
|
owner = "BOINC";
|
|
|
|
repo = "boinc";
|
2017-06-20 04:19:31 +01:00
|
|
|
rev = "client_release/${majorVersion}/${version}";
|
|
|
|
sha256 = "08kv3fai79cc28vmyi0y4xcdd5h9xgkn9yyc6y36c0mglaxsn4pr";
|
2011-10-06 21:25:05 +01:00
|
|
|
};
|
|
|
|
|
2017-06-20 04:19:31 +01:00
|
|
|
nativeBuildInputs = [ libtool automake autoconf m4 pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl mesa libXmu libXi freeglut libjpeg wxGTK sqlite gtk2 libXScrnSaver
|
|
|
|
libnotify patchelf libX11 libxcb xcbutil
|
2013-01-08 22:26:24 +00:00
|
|
|
];
|
2011-10-06 21:25:05 +01:00
|
|
|
|
2011-10-07 20:01:27 +01:00
|
|
|
NIX_LDFLAGS = "-lX11";
|
|
|
|
|
2011-10-06 21:25:05 +01:00
|
|
|
preConfigure = ''
|
|
|
|
./_autosetup
|
|
|
|
configureFlags="$configureFlags --sysconfdir=$out/etc"
|
|
|
|
'';
|
|
|
|
|
2011-10-07 20:01:19 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-01-08 22:26:24 +00:00
|
|
|
configureFlags = "--disable-server";
|
2011-10-06 21:25:05 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Free software for distributed and grid computing";
|
|
|
|
homepage = http://boinc.berkeley.edu/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2011-10-06 21:25:05 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux; # arbitrary choice
|
|
|
|
};
|
|
|
|
}
|