2015-07-20 18:25:41 +01:00
|
|
|
{ fetchFromGitHub, stdenv, autoconf, automake, pkgconfig, m4, curl,
|
2019-11-10 16:44:34 +00:00
|
|
|
libGLU, libGL, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK30, 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
|
2018-10-31 23:25:22 +00:00
|
|
|
majorVersion = "7.14";
|
|
|
|
minorVersion = "2";
|
2017-06-20 04:19:31 +01:00
|
|
|
in
|
|
|
|
|
2011-10-06 21:25:05 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-06-20 04:19:31 +01:00
|
|
|
version = "${majorVersion}.${minorVersion}";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "boinc";
|
2015-07-20 18:25:41 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-08-15 13:41:18 +01:00
|
|
|
name = "${pname}-${version}-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}";
|
2018-10-31 23:25:22 +00:00
|
|
|
sha256 = "0nicpkag18xq0libfqqvs0im22mijpsxzfk272iwdd9l0lmgfvyd";
|
2011-10-06 21:25:05 +01:00
|
|
|
};
|
|
|
|
|
2017-06-20 04:19:31 +01:00
|
|
|
nativeBuildInputs = [ libtool automake autoconf m4 pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-10 16:44:34 +00:00
|
|
|
curl libGLU libGL libXmu libXi freeglut libjpeg wxGTK30 sqlite gtk2 libXScrnSaver
|
2017-06-20 04:19:31 +01:00
|
|
|
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;
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--disable-server" ];
|
2011-10-06 21:25:05 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Free software for distributed and grid computing";
|
2019-04-15 00:25:45 +01:00
|
|
|
homepage = https://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
|
|
|
|
};
|
|
|
|
}
|