nixpkgs/pkgs/development/libraries/physics/yoda/default.nix

36 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, python2Packages, root, makeWrapper, zlib, withRootSupport ? false }:
2016-06-11 12:31:32 -07:00
stdenv.mkDerivation rec {
name = "yoda-${version}";
2018-11-03 09:27:19 -07:00
version = "1.7.3";
2016-06-11 12:31:32 -07:00
src = fetchurl {
url = "https://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2";
2018-11-03 09:27:19 -07:00
sha256 = "0n40qii2ych5yfx6drj79b3rk29dvc3gysjqs719qgl26d3hkxpb";
2016-06-11 12:31:32 -07:00
};
pythonPath = []; # python wrapper support
buildInputs = with python2Packages; [ python numpy matplotlib makeWrapper ]
++ stdenv.lib.optional withRootSupport root;
2017-12-23 15:12:34 -08:00
propagatedBuildInputs = [ zlib ];
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
'';
2018-05-29 08:22:48 -07:00
hardeningDisable = [ "format" ];
2016-06-11 12:31:32 -07:00
meta = {
description = "Provides small set of data analysis (specifically histogramming) classes";
2018-11-03 09:27:19 -07:00
license = stdenv.lib.licenses.gpl3;
2016-06-11 12:31:32 -07:00
homepage = https://yoda.hepforge.org;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
2016-06-11 12:31:32 -07:00
};
}