2021-02-05 17:12:51 +00:00
|
|
|
{ fetchFromGitHub, lib, stdenv, autoconf, automake, pkg-config, m4, curl,
|
2020-04-24 23:36:52 +00:00
|
|
|
libGLU, libGL, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK30, xcbutil,
|
|
|
|
sqlite, gtk2, patchelf, libXScrnSaver, libnotify, libX11, libxcb }:
|
|
|
|
|
|
|
|
let
|
2022-06-26 10:26:21 +00:00
|
|
|
majorVersion = "7.20";
|
2022-08-12 12:06:08 +00:00
|
|
|
minorVersion = "2";
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "${majorVersion}.${minorVersion}";
|
|
|
|
pname = "boinc";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = "${pname}-${version}-src";
|
|
|
|
owner = "BOINC";
|
|
|
|
repo = "boinc";
|
|
|
|
rev = "client_release/${majorVersion}/${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-vMb5Vq/6I6lniG396wd7+FfslsByedMRPIpiItp1d1s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ libtool automake autoconf m4 pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
curl libGLU libGL libXmu libXi freeglut libjpeg wxGTK30 sqlite gtk2 libXScrnSaver
|
|
|
|
libnotify patchelf libX11 libxcb xcbutil
|
|
|
|
];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lX11";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./_autosetup
|
|
|
|
configureFlags="$configureFlags --sysconfdir=$out/etc"
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-server" ];
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
postInstall = ''
|
|
|
|
install --mode=444 -D 'client/scripts/boinc-client.service' "$out/etc/systemd/system/boinc.service"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Free software for distributed and grid computing";
|
|
|
|
homepage = "https://boinc.berkeley.edu/";
|
2021-12-19 01:06:50 +00:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
platforms = platforms.linux; # arbitrary choice
|
2022-06-16 17:23:12 +00:00
|
|
|
# checking for gcc options needed to detect all undeclared functions... cannot detect
|
|
|
|
# configure: error: in `/build/boinc-7.18.1-src':
|
|
|
|
# configure: error: cannot make gcc report undeclared builtins
|
|
|
|
broken = stdenv.isAarch64;
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ Luflosi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|