haskell-packages: fix all-cabal-hashes component lookup

Previously, if a package name in a later component was a substring of a package name in an earlier component, the earlier component would be selected due to a partial-name match. This commit prevents partial matches.

+1 -1
+1 -1
pkgs/development/haskell-modules/make-package-set.nix
··· 122 122 '' 123 123 set +o pipefail 124 124 for component in ${all-cabal-hashes}/*; do 125 - if ls $component | grep -q ${name}; then 125 + if ls $component | grep -q "^${name}$"; then 126 126 echo "builtins.storePath $component" > $out 127 127 exit 0 128 128 fi