nixpkgs/pkgs/applications/science/misc/boinc/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

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