1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00

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.
This commit is contained in:
Ryan Trinkle 2017-10-24 09:42:22 -04:00
parent 646a77739b
commit 160685725e

View file

@ -122,7 +122,7 @@ let
''
set +o pipefail
for component in ${all-cabal-hashes}/*; do
if ls $component | grep -q ${name}; then
if ls $component | grep -q "^${name}$"; then
echo "builtins.storePath $component" > $out
exit 0
fi