treewide: fix redirected and broken URLs

Using the script in maintainers/scripts/update-redirected-urls.sh
This commit is contained in:
Anthony Roussel 2023-10-30 21:41:44 +01:00
parent 5744e4ba8f
commit e30f48be94
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E
111 changed files with 157 additions and 162 deletions

View file

@ -39,5 +39,5 @@ fi
package_list="$(nix-build -A haskell.package-list)/nixos-hackage-packages.csv"
username=$(grep "^username:" "$CABAL_DIR/config" | sed "s/^username: //")
password_command=$(grep "^password-command:" "$CABAL_DIR/config" | sed "s/^password-command: //")
curl -u "$username:$($password_command | head -n1)" --digest -H "Content-type: text/csv" -T "$package_list" http://hackage.haskell.org/distro/NixOS/packages.csv
curl -u "$username:$($password_command | head -n1)" --digest -H "Content-type: text/csv" -T "$package_list" https://hackage.haskell.org/distro/NixOS/packages.csv
echo