Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 27 lines 776 B view raw
1{ stdenv, fetchurl, python2 }: 2 3stdenv.mkDerivation rec { 4 name = "lhapdf-${version}"; 5 version = "6.2.1"; 6 7 src = fetchurl { 8 url = "http://www.hepforge.org/archive/lhapdf/LHAPDF-${version}.tar.gz"; 9 sha256 = "0bi02xcmq5as0wf0jn6i3hx0qy0hj61m02sbrbzd1gwjhpccwmvd"; 10 }; 11 12 buildInputs = [ python2 ]; 13 14 enableParallelBuilding = true; 15 16 passthru = { 17 pdf_sets = import ./pdf_sets.nix { inherit stdenv fetchurl; }; 18 }; 19 20 meta = { 21 description = "A general purpose interpolator, used for evaluating Parton Distribution Functions from discretised data files"; 22 license = stdenv.lib.licenses.gpl2; 23 homepage = http://lhapdf.hepforge.org; 24 platforms = stdenv.lib.platforms.unix; 25 maintainers = with stdenv.lib.maintainers; [ veprbl ]; 26 }; 27}