Unverified Commit b4e1c1f0 authored by Dmitry Kalinkin's avatar Dmitry Kalinkin Committed by GitHub
Browse files

lhapdf: update/fix meta, update pdf_sets (#369896)

* lhapdf: update meta

* lhapdf.pdf_sets: update
parent db503a62
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -53,8 +53,8 @@ stdenv.mkDerivation rec {

  meta = with lib; {
    description = "General purpose interpolator, used for evaluating Parton Distribution Functions from discretised data files";
    license = licenses.gpl2;
    homepage = "http://lhapdf.hepforge.org";
    license = licenses.gpl3;
    homepage = "https://www.lhapdf.org";
    platforms = platforms.unix;
    maintainers = with maintainers; [ veprbl ];
  };
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ set -xe

BASE_URL="https://lhapdfsets.web.cern.ch/current/"

for pdf_set in `curl -L $BASE_URL 2>/dev/null | "$SED" -n -e 's/.*<a href=".*\/\([^"/]*\.tar\.gz\)".*/\1/p' | sort -u`; do
for pdf_set in `curl -L $BASE_URL 2>/dev/null | "$SED" -n -e 's/.*<a href="#" data-url="\([^"/]*\.tar\.gz\)".*/\1/p' | sort -u`; do
    echo -n "  \"${pdf_set%.tar.gz}\" = \""
    nix-prefetch-url "${BASE_URL}${pdf_set}" 2>/dev/null | tr -d '\n'
    echo "\";"
+386 −194

File changed.

Preview size limit exceeded, changes collapsed.