nixpkgs/pkgs/development/libraries/physics/lhapdf/default.nix

33 lines
912 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, python2, makeWrapper }:
2016-06-11 22:12:00 +01:00
stdenv.mkDerivation rec {
pname = "lhapdf";
2020-07-26 03:55:16 +01:00
version = "6.3.0";
2016-06-11 22:12:00 +01:00
src = fetchurl {
url = "https://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
2020-07-26 03:55:16 +01:00
sha256 = "0pcvigpjqzfng06n98bshhhpimiqfg416ak8lz8jdgp6nxr8fkgd";
2016-06-11 22:12:00 +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 lib stdenv fetchurl; };
2016-06-11 22:12:00 +01:00
};
postInstall = ''
wrapProgram $out/bin/lhapdf --prefix PYTHONPATH : "$(toPythonPath "$out")"
'';
meta = with lib; {
2016-06-11 22:12:00 +01:00
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 ];
2016-06-11 22:12:00 +01:00
};
}