haskell: small improvements to script for merging haskell-updates PR

This commit is contained in:
(cdep)illabout
2021-09-20 09:52:30 +09:00
parent 5ecf510833
commit 64511038ff
3 changed files with 22 additions and 2 deletions

View File

@@ -19,3 +19,4 @@ package_list="$(nix-build -A haskell.package-list)/nixos-hackage-packages.csv"
username=$(grep "^username:" ~/.cabal/config | sed "s/^username: //")
password_command=$(grep "^password-command:" ~/.cabal/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
echo