summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/generic-builder.nix
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2018-03-17 14:42:28 +0800
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-05-23 10:27:41 -0400
commitaffeb0cb805f82bcc51e192a4c3bfe00f5f63fc9 (patch)
tree53569a5b22c21bbbd87bb79e571629a74d953ae4 /pkgs/development/haskell-modules/generic-builder.nix
parenta4d5dbd45dfe35ca93b32daedba1c25167701cb0 (diff)
downloadnixlib-affeb0cb805f82bcc51e192a4c3bfe00f5f63fc9.tar
nixlib-affeb0cb805f82bcc51e192a4c3bfe00f5f63fc9.tar.gz
nixlib-affeb0cb805f82bcc51e192a4c3bfe00f5f63fc9.tar.bz2
nixlib-affeb0cb805f82bcc51e192a4c3bfe00f5f63fc9.tar.lz
nixlib-affeb0cb805f82bcc51e192a4c3bfe00f5f63fc9.tar.xz
nixlib-affeb0cb805f82bcc51e192a4c3bfe00f5f63fc9.tar.zst
nixlib-affeb0cb805f82bcc51e192a4c3bfe00f5f63fc9.zip
haskell generic builder: Do the `links` dance only if shared is enabled.
Diffstat (limited to 'pkgs/development/haskell-modules/generic-builder.nix')
-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 66c8c1fd3753..ef4cccdd820e 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -284,7 +284,7 @@ stdenv.mkDerivation ({
   # only use the links hack if we're actually building dylibs. otherwise, the
   # "dynamic-library-dirs" point to nonexistent paths, and the ln command becomes
   # "ln -s $out/lib/links", which tries to recreate the links dir and fails
-  + (optionalString (stdenv.isDarwin && enableSharedLibraries) ''
+  + (optionalString (stdenv.isDarwin && (enableSharedLibraries || enableSharedExecutables)) ''
     # Work around a limit in the macOS Sierra linker on the number of paths
     # referenced by any one dynamic library:
     #