mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
01b21d1d65
Diff: https://github.com/BOINC/boinc/compare/client_release/8.0/8.0.2...client_release/8.0/8.0.4 Changelog: https://github.com/BOINC/boinc/releases/tag/client_release%2F8.0%2F8.0.3 https://github.com/BOINC/boinc/releases/tag/client_release%2F8.0%2F8.0.4
84 lines
1.5 KiB
Nix
84 lines
1.5 KiB
Nix
{ fetchFromGitHub
|
|
, lib
|
|
, stdenv
|
|
, autoconf
|
|
, automake
|
|
, pkg-config
|
|
, m4
|
|
, curl
|
|
, libGLU
|
|
, libGL
|
|
, libXmu
|
|
, libXi
|
|
, libglut
|
|
, libjpeg
|
|
, libtool
|
|
, wxGTK32
|
|
, xcbutil
|
|
, sqlite
|
|
, gtk3
|
|
, patchelf
|
|
, libXScrnSaver
|
|
, libnotify
|
|
, libX11
|
|
, libxcb
|
|
, headless ? false
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "boinc";
|
|
version = "8.0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
name = "${pname}-${version}-src";
|
|
owner = "BOINC";
|
|
repo = "boinc";
|
|
rev = "client_release/${lib.versions.majorMinor version}/${version}";
|
|
hash = "sha256-dp0zRMIG0PGXhth+Cc8FDhzl5X/4ud3GFCdE7wqPL/c=";
|
|
};
|
|
|
|
nativeBuildInputs = [ libtool automake autoconf m4 pkg-config ];
|
|
|
|
buildInputs = [
|
|
curl
|
|
sqlite
|
|
patchelf
|
|
] ++ lib.optionals (!headless) [
|
|
libGLU
|
|
libGL
|
|
libXmu
|
|
libXi
|
|
libglut
|
|
libjpeg
|
|
wxGTK32
|
|
gtk3
|
|
libXScrnSaver
|
|
libnotify
|
|
libX11
|
|
libxcb
|
|
xcbutil
|
|
];
|
|
|
|
NIX_LDFLAGS = lib.optionalString (!headless) "-lX11";
|
|
|
|
preConfigure = ''
|
|
./_autosetup
|
|
configureFlags="$configureFlags --sysconfdir=$out/etc"
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
configureFlags = [ "--disable-server" ] ++ lib.optionals headless [ "--disable-manager" ];
|
|
|
|
postInstall = ''
|
|
install --mode=444 -D 'client/scripts/boinc-client.service' "$out/etc/systemd/system/boinc.service"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Free software for distributed and grid computing";
|
|
homepage = "https://boinc.berkeley.edu/";
|
|
license = licenses.lgpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ Luflosi ];
|
|
};
|
|
}
|