maintainers/haskell/upload-nixos-package-list: ignore aliases

Aliases are (very unlikely) to be actual Hackage packages. Also,
currently the `ghcup` alias breaks evaluation of the package list.
This commit is contained in:
sternenseemann 2026-02-25 13:24:54 +01:00
parent b24fc814b1
commit 57ca037713

View file

@ -36,7 +36,7 @@ if test -z "$CABAL_DIR"; then
fi
fi
package_list="$(nix-build -A haskell.package-list)/nixos-hackage-packages.csv"
package_list="$(nix-build --arg config '{ allowAliases = false; }' -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" https://hackage.haskell.org/distro/NixOS/packages.csv