3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/misc/boinc/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

{ fetchFromGitHub, lib, stdenv, autoconf, automake, pkg-config, m4, curl,
2019-11-10 16:44:34 +00:00
libGLU, libGL, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK30, xcbutil,
sqlite, gtk2, patchelf, libXScrnSaver, libnotify, libX11, libxcb }:
2017-06-20 04:19:31 +01:00
let
2018-10-31 23:25:22 +00:00
majorVersion = "7.14";
minorVersion = "2";
2017-06-20 04:19:31 +01:00
in
stdenv.mkDerivation rec {
2017-06-20 04:19:31 +01:00
version = "${majorVersion}.${minorVersion}";
pname = "boinc";
src = fetchFromGitHub {
name = "${pname}-${version}-src";
owner = "BOINC";
repo = "boinc";
2017-06-20 04:19:31 +01:00
rev = "client_release/${majorVersion}/${version}";
2018-10-31 23:25:22 +00:00
sha256 = "0nicpkag18xq0libfqqvs0im22mijpsxzfk272iwdd9l0lmgfvyd";
};
nativeBuildInputs = [ libtool automake autoconf m4 pkg-config ];
2017-06-20 04:19:31 +01:00
buildInputs = [
2019-11-10 16:44:34 +00:00
curl libGLU libGL libXmu libXi freeglut libjpeg wxGTK30 sqlite gtk2 libXScrnSaver
2017-06-20 04:19:31 +01:00
libnotify patchelf libX11 libxcb xcbutil
];
NIX_LDFLAGS = "-lX11";
preConfigure = ''
./_autosetup
configureFlags="$configureFlags --sysconfdir=$out/etc"
'';
enableParallelBuilding = true;
2018-07-25 22:44:21 +01:00
configureFlags = [ "--disable-server" ];
meta = {
description = "Free software for distributed and grid computing";
homepage = "https://boinc.berkeley.edu/";
2021-01-15 13:21:58 +00:00
license = lib.licenses.lgpl2Plus;
platforms = lib.platforms.linux; # arbitrary choice
};
}