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-21 15:11:11 -0400
commit5e589a40497eaf15108f503f41dd62b925ad9e5f (patch)
tree146b5b0c61c13aeb77f71be563f2ebe52750bfb6 /pkgs/development/haskell-modules/generic-builder.nix
parent4ea33def46709e90b9f41ccd6fb6a84342ecd926 (diff)
downloadnixlib-5e589a40497eaf15108f503f41dd62b925ad9e5f.tar
nixlib-5e589a40497eaf15108f503f41dd62b925ad9e5f.tar.gz
nixlib-5e589a40497eaf15108f503f41dd62b925ad9e5f.tar.bz2
nixlib-5e589a40497eaf15108f503f41dd62b925ad9e5f.tar.lz
nixlib-5e589a40497eaf15108f503f41dd62b925ad9e5f.tar.xz
nixlib-5e589a40497eaf15108f503f41dd62b925ad9e5f.tar.zst
nixlib-5e589a40497eaf15108f503f41dd62b925ad9e5f.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 1b9372c28df5..a94f20710041 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:
     #