2017-04-05 04:47:26 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, python2Packages, root, makeWrapper, withRootSupport ? false }:
|
2016-06-11 21:31:32 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yoda-${version}";
|
2017-07-14 01:04:02 +02:00
|
|
|
version = "1.6.7";
|
2016-06-11 21:31:32 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
|
2017-07-14 01:04:02 +02:00
|
|
|
sha256 = "05jyv5dypa6d4q1m8wm2qycgq1i0bgzwzzm9qqdj0b43ff2kggra";
|
2016-06-11 21:31:32 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = []; # python wrapper support
|
|
|
|
|
2017-04-03 09:48:22 +02:00
|
|
|
buildInputs = with python2Packages; [ python numpy matplotlib makeWrapper ]
|
|
|
|
++ stdenv.lib.optional withRootSupport root;
|
2016-06-11 21:31:32 +02:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for prog in "$out"/bin/*; do
|
|
|
|
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Provides small set of data analysis (specifically histogramming) classes";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
homepage = https://yoda.hepforge.org;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-10-22 12:05:23 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2016-06-11 21:31:32 +02:00
|
|
|
};
|
|
|
|
}
|