#! /usr/bin/env nix-shell #! nix-shell -i bash -p coreutils findutils gnused nix wget set -x MAJOR_VERSION="5.5" VERSION="${MAJOR_VERSION}.1" # The trailing slash at the end is necessary! RELEASE_URLS=( "http://download.qt.io/official_releases/qt/$MAJOR_VERSION/$VERSION/submodules/" "http://download.qt.io/community_releases/$MAJOR_VERSION/$VERSION/" ) EXTRA_WGET_ARGS='-A *.tar.xz' mkdir tmp; cd tmp for url in "${RELEASE_URLS[@]}"; do wget -nH -r -c --no-parent $url $EXTRA_WGET_ARGS done cat >../srcs.nix <>../srcs.nix <>../srcs.nix cd ..