depot/third_party/nixpkgs/pkgs/applications/science/misc/boinc/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

82 lines
1.4 KiB
Nix

{ 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
}:
stdenv.mkDerivation rec {
pname = "boinc";
version = "7.22.2";
src = fetchFromGitHub {
name = "${pname}-${version}-src";
owner = "BOINC";
repo = "boinc";
rev = "client_release/${lib.versions.majorMinor version}/${version}";
hash = "sha256-9GgvyYiDfppRuDFfxn50e+YZeSX0SLKSfo31lWx2FBs=";
};
nativeBuildInputs = [ libtool automake autoconf m4 pkg-config ];
buildInputs = [
curl
libGLU
libGL
libXmu
libXi
freeglut
libjpeg
wxGTK32
sqlite
gtk3
libXScrnSaver
libnotify
patchelf
libX11
libxcb
xcbutil
];
NIX_LDFLAGS = "-lX11";
preConfigure = ''
./_autosetup
configureFlags="$configureFlags --sysconfdir=$out/etc"
'';
enableParallelBuilding = true;
configureFlags = [ "--disable-server" ];
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 ];
};
}