maintainers/scripts/haskell: Sort transitive broken case insensitive
This commit is contained in:
parent
dd8a25528a
commit
9a51c0704f
|
@ -1,3 +1,15 @@
|
||||||
#! /usr/bin/env nix-shell
|
#! /usr/bin/env nix-shell
|
||||||
#! nix-shell -i bash -p coreutils nix gnused -I nixpkgs=.
|
#! nix-shell -i bash -p coreutils nix gnused -I nixpkgs=.
|
||||||
echo -e $(nix-instantiate --eval --strict maintainers/scripts/haskell/transitive-broken-packages.nix) | sed 's/\"//' > pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml
|
|
||||||
|
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/\"//' | sort -i >> $config_file
|
||||||
|
|
|
@ -12,10 +12,5 @@ let
|
||||||
(getEvaluating (nixpkgs { config.allowBroken = true; }).haskellPackages);
|
(getEvaluating (nixpkgs { config.allowBroken = true; }).haskellPackages);
|
||||||
in
|
in
|
||||||
''
|
''
|
||||||
# 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:
|
|
||||||
${lib.concatMapStringsSep "\n" (x: " - ${x}") brokenDeps}
|
${lib.concatMapStringsSep "\n" (x: " - ${x}") brokenDeps}
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in New Issue