mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
ea2660f8d2
This makes sure that the output list of transitive broken packages will always be ordered the same regardless of the environment you are running from.
16 lines
689 B
Bash
Executable File
16 lines
689 B
Bash
Executable File
#! /usr/bin/env nix-shell
|
|
#! nix-shell -i bash -p coreutils nix gnused -I nixpkgs=.
|
|
|
|
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 ..."
|
|
echo -e $(nix-instantiate --eval --strict maintainers/scripts/haskell/transitive-broken-packages.nix) | sed 's/\"//' | LC_ALL=C.UTF-8 sort -i >> $config_file
|