lol

lhadpdf.pdf_sets: update maintainer.sh

+5 -3
+5 -3
pkgs/development/libraries/physics/lhapdf/maintainer.sh
··· 1 1 #!/bin/bash 2 2 3 - set -e 3 + set -xe 4 4 5 - BASE_URL="https://lhapdf.hepforge.org/downloads?f=pdfsets/6.2/" 5 + : ${SED:="$(nix-build '<nixpkgs>' -A gnused --no-out-link)/bin/sed"} 6 6 7 - for pdf_set in `curl $BASE_URL 2>/dev/null | gsed -e "s/.*<a href=\"[^\"]*\/\([^\"/]*.tar.gz\)\".*/\1/;tx;d;:x" | gsed -e "s/%2B/+/g" | sort -u`; do 7 + BASE_URL="https://lhapdfsets.web.cern.ch/lhapdfsets/current/" 8 + 9 + for pdf_set in `curl -L $BASE_URL 2>/dev/null | "$SED" -e "s/.*<a href=\"\([^\"/]*.tar.gz\)\".*/\1/;tx;d;:x" | sort -u`; do 8 10 echo -n " \"${pdf_set%.tar.gz}\" = \"" 9 11 nix-prefetch-url "${BASE_URL}${pdf_set}" 2>/dev/null | tr -d '\n' 10 12 echo "\";"