From 160685725eac9adcc061a49f72cb3e7cd72d4e50 Mon Sep 17 00:00:00 2001 From: Ryan Trinkle Date: Tue, 24 Oct 2017 09:42:22 -0400 Subject: [PATCH] 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. --- pkgs/development/haskell-modules/make-package-set.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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