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,
mesa, libXmu, libXi, freeglut, libjpeg, libtool, wxGTK, xcbutil,
sqlite, gtk2, patchelf, libXScrnSaver, libnotify, libX11, libxcb }:
2017-06-20 04:19:31 +01:00
let
majorVersion = "7.8";
minorVersion = "0";
in
stdenv.mkDerivation rec {
2017-06-20 04:19:31 +01:00
version = "${majorVersion}.${minorVersion}";
name = "boinc-${version}";
src = fetchFromGitHub {
2017-06-20 04:19:31 +01:00
name = "${name}-src";
owner = "BOINC";
repo = "boinc";
2017-06-20 04:19:31 +01:00
rev = "client_release/${majorVersion}/${version}";
sha256 = "08kv3fai79cc28vmyi0y4xcdd5h9xgkn9yyc6y36c0mglaxsn4pr";
};
2017-06-20 04:19:31 +01:00
nativeBuildInputs = [ libtool automake autoconf m4 pkgconfig ];
buildInputs = [
curl mesa libXmu libXi freeglut libjpeg wxGTK sqlite gtk2 libXScrnSaver
libnotify patchelf libX11 libxcb xcbutil
];
NIX_LDFLAGS = "-lX11";
preConfigure = ''
./_autosetup
configureFlags="$configureFlags --sysconfdir=$out/etc"
'';
enableParallelBuilding = true;
configureFlags = "--disable-server";
meta = {
description = "Free software for distributed and grid computing";
homepage = http://boinc.berkeley.edu/;
license = stdenv.lib.licenses.lgpl2Plus;
platforms = stdenv.lib.platforms.linux; # arbitrary choice
};
}