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

32 lines
878 B
Nix
Raw Normal View History

2016-10-21 02:01:55 +01:00
{ stdenv, fetchurl, boost, python2 }:
2016-06-11 22:12:00 +01:00
stdenv.mkDerivation rec {
name = "lhapdf-${version}";
version = "6.1.6";
src = fetchurl {
url = "http://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz";
sha256 = "1sgbaxv8clcfy4d96fkwfyqcd4b29i0hwv32ry4vy69j5qiki0f2";
};
2016-10-21 02:01:55 +01:00
buildInputs = [ boost python2 ];
2016-06-11 22:12:00 +01:00
patches = [ ./distutils-c++.patch ];
configureFlags = "--with-boost=${boost.dev}";
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
};
}