rdma-core: 54.0 -> 55.0 (#364655)
[NixPkgs.git] / pkgs / development / libraries / physics / lhapdf / maintainer.sh
blobdc182ec99ea63ef964dd4d5ca2392a61b26f769f
1 #!/bin/bash
3 set -xe
5 : ${SED:="$(nix-build '<nixpkgs>' -A gnused --no-out-link)/bin/sed"}
7 BASE_URL="https://lhapdfsets.web.cern.ch/current/"
9 for pdf_set in `curl -L $BASE_URL 2>/dev/null | "$SED" -n -e 's/.*<a href=".*\/\([^"/]*\.tar\.gz\)".*/\1/p' | sort -u`; do
10 echo -n " \"${pdf_set%.tar.gz}\" = \""
11 nix-prefetch-url "${BASE_URL}${pdf_set}" 2>/dev/null | tr -d '\n'
12 echo "\";"
13 done