2017-12-23 23:12:34 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, python2Packages, root, makeWrapper, zlib, withRootSupport ? false }:
|
2016-06-11 20:31:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yoda-${version}";
|
2017-12-23 23:12:34 +00:00
|
|
|
version = "1.7.0";
|
2016-06-11 20:31:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
|
2017-12-23 23:12:34 +00:00
|
|
|
sha256 = "0fyf6ld1klzlfmr5sl1jxzck4a0h14zfkrff8397rn1fqnqbzmmk";
|
2016-06-11 20:31:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = []; # python wrapper support
|
|
|
|
|
2017-04-03 08:48:22 +01:00
|
|
|
buildInputs = with python2Packages; [ python numpy matplotlib makeWrapper ]
|
|
|
|
++ stdenv.lib.optional withRootSupport root;
|
2017-12-23 23:12:34 +00:00
|
|
|
propagatedBuildInputs = [ zlib ];
|
2016-06-11 20:31:32 +01: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 11:05:23 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2016-06-11 20:31:32 +01:00
|
|
|
};
|
|
|
|
}
|