depot/third_party/nixpkgs/pkgs/development/libraries/physics/lhapdf/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

32 lines
910 B
Nix

{ lib, stdenv, fetchurl, python, makeWrapper }:
stdenv.mkDerivation rec {
pname = "lhapdf";
version = "6.3.0";
src = fetchurl {
url = "https://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
sha256 = "0pcvigpjqzfng06n98bshhhpimiqfg416ak8lz8jdgp6nxr8fkgd";
};
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 ];
};
}