2018-07-21 03:44:44 +03:00
|
|
|
{ stdenv, fetchurl, python2Packages, root, makeWrapper, zlib, withRootSupport ? false }:
|
2016-06-11 22:31:32 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yoda-${version}";
|
2018-08-15 00:49:21 +03:00
|
|
|
version = "1.7.1";
|
2016-06-11 22:31:32 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 21:43:35 +03:00
|
|
|
url = "https://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
|
2018-08-15 00:49:21 +03:00
|
|
|
sha256 = "0yq20fnckf6h0a53ghxsgia6ikq71ch9a0w0khq188r7rlg9gmzd";
|
2016-06-11 22:31:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = []; # python wrapper support
|
|
|
|
|
2017-04-03 10:48:22 +03:00
|
|
|
buildInputs = with python2Packages; [ python numpy matplotlib makeWrapper ]
|
|
|
|
++ stdenv.lib.optional withRootSupport root;
|
2017-12-24 02:12:34 +03:00
|
|
|
propagatedBuildInputs = [ zlib ];
|
2016-06-11 22:31:32 +03:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for prog in "$out"/bin/*; do
|
|
|
|
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2018-05-29 18:22:48 +03:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2016-06-11 22:31:32 +03:00
|
|
|
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 13:05:23 +03:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2016-06-11 22:31:32 +03:00
|
|
|
};
|
|
|
|
}
|