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

33 lines
934 B
Nix
Raw Normal View History

{ stdenv, fetchurl, python2, makeWrapper }:
2016-06-11 22:12:00 +01:00
stdenv.mkDerivation rec {
name = "lhapdf-${version}";
version = "6.2.3";
2016-06-11 22:12:00 +01:00
src = fetchurl {
url = "https://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
sha256 = "1l9dv37k4jz18wahyfm9g53nyl81v5bgqgy4dllbcmvcqpfkmrnn";
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 stdenv fetchurl; };
};
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;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
2016-06-11 22:12:00 +01:00
};
}