2021-05-05 20:38:46 +00:00
|
|
|
#! /usr/bin/env nix-shell
|
2022-12-24 10:02:15 +00:00
|
|
|
#! nix-shell -i bash -p coreutils jq nix -I nixpkgs=.
|
2021-05-09 11:47:15 +00:00
|
|
|
|
|
|
|
config_file=pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml
|
|
|
|
|
|
|
|
cat > $config_file << 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
|
|
|
|
|
|
|
|
echo "Regenerating list of transitive broken packages ..."
|
2022-12-24 10:02:15 +00:00
|
|
|
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 -i >> $config_file
|