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