forked from mirrors/nixpkgs
33 lines
909 B
Nix
33 lines
909 B
Nix
{ lib, stdenv, fetchurl, python, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lhapdf";
|
|
version = "6.4.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
|
|
sha256 = "sha256-fS8CZ+LWWw3e4EhVOzQtfIk6bbq+HjJsrWLeABDdgQw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ python ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru = {
|
|
pdf_sets = import ./pdf_sets.nix { inherit lib stdenv fetchurl; };
|
|
};
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/lhapdf --prefix PYTHONPATH : "$(toPythonPath "$out")"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A general purpose interpolator, used for evaluating Parton Distribution Functions from discretised data files";
|
|
license = licenses.gpl2;
|
|
homepage = "http://lhapdf.hepforge.org";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ veprbl ];
|
|
};
|
|
}
|