diff --git a/pkgs/development/haskell-modules/make-package-set.nix b/pkgs/development/haskell-modules/make-package-set.nix index c234ff3e7802..ebfe44dd25ae 100644 --- a/pkgs/development/haskell-modules/make-package-set.nix +++ b/pkgs/development/haskell-modules/make-package-set.nix @@ -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