diff options
-rw-r--r-- | pkgs/development/libraries/physics/yoda/default.nix | 30 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/libraries/physics/yoda/default.nix b/pkgs/development/libraries/physics/yoda/default.nix new file mode 100644 index 0000000000000..658ec4f99ed1f --- /dev/null +++ b/pkgs/development/libraries/physics/yoda/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchurl, python2Packages, makeWrapper }: + +stdenv.mkDerivation rec { + name = "yoda-${version}"; + version = "1.6.5"; + + src = fetchurl { + url = "http://www.hepforge.org/archive/yoda/YODA-${version}.tar.bz2"; + sha256 = "1i8lmj63cd3qnxl9k2cb1abap2pirhx7ffinm834wbpy9iszwxql"; + }; + + pythonPath = []; # python wrapper support + + buildInputs = with python2Packages; [ python numpy matplotlib makeWrapper ]; + + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 13470090d874e..32087ed870e8f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16719,6 +16719,8 @@ in hepmc = callPackage ../development/libraries/physics/hepmc { }; + yoda = callPackage ../development/libraries/physics/yoda { }; + ### MISC antimicro = qt5.callPackage ../tools/misc/antimicro { }; |