3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/physics/lhapdf/default.nix

28 lines
776 B
Nix
Raw Normal View History

2017-07-14 04:38:57 +01:00
{ stdenv, fetchurl, python2 }:
2016-06-11 22:12:00 +01:00
stdenv.mkDerivation rec {
name = "lhapdf-${version}";
2017-12-23 22:48:41 +00:00
version = "6.2.1";
2016-06-11 22:12:00 +01:00
src = fetchurl {
url = "http://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
2017-12-23 22:48:41 +00:00
sha256 = "0bi02xcmq5as0wf0jn6i3hx0qy0hj61m02sbrbzd1gwjhpccwmvd";
2016-06-11 22:12:00 +01:00
};
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; };
};
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
};
}