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

28 lines
755 B
Nix
Raw Normal View History

2016-04-18 02:30:46 +01:00
{ stdenv, fetchurl, fetchpatch, cmake, pkgconfig, python
, libX11, libXpm, libXft, libXext, zlib, lzma }:
stdenv.mkDerivation rec {
name = "root-${version}";
2016-04-18 02:30:46 +01:00
version = "6.04.16";
src = fetchurl {
2016-04-18 02:30:46 +01:00
url = "https://root.cern.ch/download/root_v${version}.source.tar.gz";
sha256 = "0f58dg83aqhggkxmimsfkd1qyni2vhmykq4qa89cz6jr9p73i1vm";
};
buildInputs = [ cmake pkgconfig python libX11 libXpm libXft libXext zlib lzma ];
cmakeFlags = [
"-Drpath=ON"
]
++ stdenv.lib.optional (stdenv.cc.libc != null) "-DC_INCLUDE_DIRS=${stdenv.cc.libc}/include";
2014-01-20 17:26:32 +00:00
enableParallelBuilding = true;
meta = {
homepage = "https://root.cern.ch/";
description = "A data analysis framework";
platforms = stdenv.lib.platforms.linux;
};
}