2017-04-04 19:47:26 -07:00
|
|
|
{ stdenv, fetchurl, fetchpatch, python2Packages, root, makeWrapper, withRootSupport ? false }:
|
2016-06-11 12:31:32 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yoda-${version}";
|
2017-04-02 20:26:05 -07:00
|
|
|
version = "1.6.6";
|
2016-06-11 12:31:32 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
|
2017-04-02 20:26:05 -07:00
|
|
|
sha256 = "088xx4q6b03bnj6xg5189m8wsznhal8aj3jk40sbj24idm4jl5yg";
|
2016-06-11 12:31:32 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonPath = []; # python wrapper support
|
|
|
|
|
2017-04-04 19:47:26 -07:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://yoda.hepforge.org/hg/yoda/rev/3dbc8927e715?style=raw";
|
|
|
|
sha256 = "02rm34z9lbab66p7gpij12qwdph5fddpksg80qz0m537wjwy2ddy";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://yoda.hepforge.org/hg/yoda/rev/669c2be582ef?style=raw";
|
|
|
|
sha256 = "0s705cl3bazpvpvy46vv1k223knwxq2yy5na1c6lv217sq9w86wj";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-04-03 00:48:22 -07:00
|
|
|
buildInputs = with python2Packages; [ python numpy matplotlib makeWrapper ]
|
|
|
|
++ stdenv.lib.optional withRootSupport root;
|
2016-06-11 12:31:32 -07: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 03:05:23 -07:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2016-06-11 12:31:32 -07:00
|
|
|
};
|
|
|
|
}
|