2015-07-20 19:25:41 +02:00
|
|
|
{ fetchFromGitHub, stdenv, autoconf, automake, pkgconfig, m4, curl,
|
2018-11-01 00:25:22 +01:00
|
|
|
libGLU_combined, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK30, xcbutil,
|
2016-09-11 23:24:51 +02:00
|
|
|
sqlite, gtk2, patchelf, libXScrnSaver, libnotify, libX11, libxcb }:
|
2011-10-06 22:25:05 +02:00
|
|
|
|
2017-06-20 05:19:31 +02:00
|
|
|
let
|
2018-11-01 00:25:22 +01:00
|
|
|
majorVersion = "7.14";
|
|
|
|
minorVersion = "2";
|
2017-06-20 05:19:31 +02:00
|
|
|
in
|
|
|
|
|
2011-10-06 22:25:05 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2017-06-20 05:19:31 +02:00
|
|
|
version = "${majorVersion}.${minorVersion}";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "boinc";
|
2015-07-20 19:25:41 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-08-15 14:41:18 +02:00
|
|
|
name = "${pname}-${version}-src";
|
2015-07-20 19:25:41 +02:00
|
|
|
owner = "BOINC";
|
|
|
|
repo = "boinc";
|
2017-06-20 05:19:31 +02:00
|
|
|
rev = "client_release/${majorVersion}/${version}";
|
2018-11-01 00:25:22 +01:00
|
|
|
sha256 = "0nicpkag18xq0libfqqvs0im22mijpsxzfk272iwdd9l0lmgfvyd";
|
2011-10-06 22:25:05 +02:00
|
|
|
};
|
|
|
|
|
2017-06-20 05:19:31 +02:00
|
|
|
nativeBuildInputs = [ libtool automake autoconf m4 pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-11-01 00:25:22 +01:00
|
|
|
curl libGLU_combined libXmu libXi freeglut libjpeg wxGTK30 sqlite gtk2 libXScrnSaver
|
2017-06-20 05:19:31 +02:00
|
|
|
libnotify patchelf libX11 libxcb xcbutil
|
2013-01-08 23:26:24 +01:00
|
|
|
];
|
2011-10-06 22:25:05 +02:00
|
|
|
|
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;
|
|
|
|
|
2018-07-25 23:44:21 +02:00
|
|
|
configureFlags = [ "--disable-server" ];
|
2011-10-06 22:25:05 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Free software for distributed and grid computing";
|
2019-04-15 01:25:45 +02:00
|
|
|
homepage = https://boinc.berkeley.edu/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl2Plus;
|
2011-10-06 22:25:05 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux; # arbitrary choice
|
|
|
|
};
|
|
|
|
}
|