2014-12-10 12:59:24 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, cmake, mesa, gfortran
|
|
|
|
, libX11,libXpm, libXft, libXext, zlib }:
|
2014-01-13 21:43:54 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-01-20 18:24:27 +01:00
|
|
|
name = "root-${version}";
|
2014-03-03 11:08:42 +01:00
|
|
|
version = "5.34.15";
|
2014-01-13 21:43:54 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-20 18:24:27 +01:00
|
|
|
url = "ftp://root.cern.ch/root/root_v${version}.source.tar.gz";
|
2014-03-03 11:08:42 +01:00
|
|
|
sha256 = "1bkiggcyya39a794d3d2rzzmmkbdymf86hbqhh0l1pl4f38xvp6i";
|
2014-01-13 21:43:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake gfortran mesa libX11 libXpm libXft libXext zlib ];
|
|
|
|
|
|
|
|
# CMAKE_INSTALL_RPATH_USE_LINK_PATH is set to FALSE in
|
|
|
|
# <rootsrc>/cmake/modules/RootBuildOptions.cmake.
|
|
|
|
# This patch sets it to TRUE.
|
2014-12-10 12:59:24 +01:00
|
|
|
patches = [
|
|
|
|
./cmake.patch
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-tm_t-member.diff";
|
|
|
|
url = "https://github.com/root-mirror/root/commit/"
|
|
|
|
+ "08b08412bafc24fa635b0fdb832097a3aa2fa1d2.diff";
|
|
|
|
sha256 = "0apbp51pk8471gl06agx3i88dn76p6gpkgf1ssfhcyam0bjl8907";
|
|
|
|
})
|
|
|
|
];
|
2014-01-13 21:43:54 +01:00
|
|
|
|
2014-01-20 18:26:32 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-01-13 21:43:54 +01:00
|
|
|
meta = {
|
2014-01-20 18:24:27 +01:00
|
|
|
homepage = "http://root.cern.ch/drupal/";
|
2014-01-13 21:43:54 +01:00
|
|
|
description = "A data analysis framework";
|
2014-08-08 17:58:34 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-01-13 21:43:54 +01:00
|
|
|
};
|
|
|
|
}
|