summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Simons2018-01-02 17:41:39 +0100
committerGitHub2018-01-02 17:41:39 +0100
commitc98eb9e9b982a33d00bb5ab7da8d646c63912e8e (patch)
tree505b193101d792c3c701bdac5bdda00ebfed955f
parentbc5bf958580c7de14acd9e94e95d0e23126bf8fe (diff)
parent34a91b79220cf54bce20db52cf2d5775ccc5e611 (diff)
Merge pull request #33333 from shlevy/haskell-internal-libs-darwin
haskell: Fix depending on libs with internal libs on darwin.
-rw-r--r--pkgs/development/haskell-modules/generic-builder.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix
index c633310a37a4..e4ae24f74fab 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -243,7 +243,7 @@ stdenv.mkDerivation ({
     # libraries) from all the dependencies.
     local dynamicLinksDir="$out/lib/links"
     mkdir -p $dynamicLinksDir
-    for d in $(grep dynamic-library-dirs "$packageConfDir/"*|awk '{print $2}'); do
+    for d in $(grep dynamic-library-dirs "$packageConfDir/"*|awk '{print $2}'|sort -u); do
       ln -s "$d/"*.dylib $dynamicLinksDir
     done
     # Edit the local package DB to reference the links directory.