2022-11-27 09:42:12 +00:00
|
|
|
{ fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, autoconf
|
|
|
|
, automake
|
|
|
|
, pkg-config
|
|
|
|
, m4
|
|
|
|
, curl
|
|
|
|
, libGLU
|
|
|
|
, libGL
|
|
|
|
, libXmu
|
|
|
|
, libXi
|
|
|
|
, freeglut
|
|
|
|
, libjpeg
|
|
|
|
, libtool
|
|
|
|
, wxGTK32
|
|
|
|
, xcbutil
|
|
|
|
, sqlite
|
|
|
|
, gtk3
|
|
|
|
, patchelf
|
|
|
|
, libXScrnSaver
|
|
|
|
, libnotify
|
|
|
|
, libX11
|
|
|
|
, libxcb
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "boinc";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "7.22.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = "${pname}-${version}-src";
|
|
|
|
owner = "BOINC";
|
|
|
|
repo = "boinc";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "client_release/${lib.versions.majorMinor version}/${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-DYbcWBJEjSJWRXNdumDhhybKSs8ofyREWqj2ghrvmBE=";
|
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 = [
|
2022-11-27 09:42:12 +00:00
|
|
|
curl
|
|
|
|
libGLU
|
|
|
|
libGL
|
|
|
|
libXmu
|
|
|
|
libXi
|
|
|
|
freeglut
|
|
|
|
libjpeg
|
|
|
|
wxGTK32
|
|
|
|
sqlite
|
|
|
|
gtk3
|
|
|
|
libXScrnSaver
|
|
|
|
libnotify
|
|
|
|
patchelf
|
|
|
|
libX11
|
|
|
|
libxcb
|
|
|
|
xcbutil
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
2022-11-27 09:42:12 +00:00
|
|
|
platforms = platforms.linux;
|
2021-12-19 01:06:50 +00:00
|
|
|
maintainers = with maintainers; [ Luflosi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|