2018-09-24 20:37:44 +00:00
|
|
|
{ stdenv, fetchurl, python2, makeWrapper }:
|
2016-06-11 21:12:00 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "lhapdf";
|
2020-07-26 02:55:16 +00:00
|
|
|
version = "6.3.0";
|
2016-06-11 21:12:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
|
2020-07-26 02:55:16 +00:00
|
|
|
sha256 = "0pcvigpjqzfng06n98bshhhpimiqfg416ak8lz8jdgp6nxr8fkgd";
|
2016-06-11 21:12:00 +00:00
|
|
|
};
|
|
|
|
|
2018-09-24 20:37:44 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2017-07-14 03:38:57 +00:00
|
|
|
buildInputs = [ python2 ];
|
2016-06-11 21:12:00 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
pdf_sets = import ./pdf_sets.nix { inherit stdenv fetchurl; };
|
|
|
|
};
|
|
|
|
|
2018-09-24 20:37:44 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/lhapdf --prefix PYTHONPATH : "$(toPythonPath "$out")"
|
|
|
|
'';
|
|
|
|
|
2016-06-11 21:12:00 +00:00
|
|
|
meta = {
|
|
|
|
description = "A general purpose interpolator, used for evaluating Parton Distribution Functions from discretised data files";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://lhapdf.hepforge.org";
|
2016-06-11 21:12:00 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-10-22 10:05:23 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ veprbl ];
|
2016-06-11 21:12:00 +00:00
|
|
|
};
|
|
|
|
}
|