mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
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:
parent
b24fc814b1
commit
57ca037713
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue