3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/physics/yoda/default.nix

36 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, python2Packages, root, makeWrapper, zlib, withRootSupport ? false }:
2016-06-11 20:31:32 +01:00
stdenv.mkDerivation rec {
pname = "yoda";
2019-06-27 15:40:41 +01:00
version = "1.7.7";
2016-06-11 20:31:32 +01:00
src = fetchurl {
url = "https://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
2019-06-27 15:40:41 +01:00
sha256 = "1ki88rscnym0vjxpfgql8m1lrc7vm1jb9w4jhw9lvv3rk84lpdng";
2016-06-11 20:31:32 +01:00
};
pythonPath = []; # python wrapper support
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
'';
2018-05-29 16:22:48 +01:00
hardeningDisable = [ "format" ];
2016-06-11 20:31:32 +01:00
meta = {
description = "Provides small set of data analysis (specifically histogramming) classes";
2018-11-03 16:27:19 +00:00
license = stdenv.lib.licenses.gpl3;
2016-06-11 20:31:32 +01:00
homepage = https://yoda.hepforge.org;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
2016-06-11 20:31:32 +01:00
};
}