Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
26 lines
820 B
Bash
Executable File
26 lines
820 B
Bash
Executable File
#! /usr/bin/env nix-shell
|
|
#! nix-shell -i bash -p coreutils jq -I nixpkgs=.
|
|
|
|
set -euo pipefail
|
|
|
|
TMP_TEMPLATE=transitive-broken.XXXXXXX
|
|
readonly TMP_TEMPLATE
|
|
|
|
tmpfile=$(mktemp "$TMP_TEMPLATE")
|
|
|
|
trap 'rm -f "${tmpfile}"' 0
|
|
|
|
config_file=pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml
|
|
|
|
cat > $tmpfile << EOF
|
|
# This file is automatically generated by
|
|
# maintainers/scripts/haskell/regenerate-transitive-broken-packages.sh
|
|
# It is supposed to list all haskellPackages that cannot evaluate because they
|
|
# depend on a dependency marked as broken.
|
|
dont-distribute-packages:
|
|
EOF
|
|
|
|
nix-instantiate --eval --option restrict-eval true -I . --strict --json maintainers/scripts/haskell/transitive-broken-packages.nix | jq -r . | LC_ALL=C.UTF-8 sort --ignore-case >> $tmpfile
|
|
|
|
mv $tmpfile $config_file
|