summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-01-05 03:39:32 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-01-11 03:17:29 +0000
commita52f9a18bf28c63b3e1b9ceb542ff36245a54c09 (patch)
treee40b404c8be198dfb933e5786b723f7ce83bd9a2 /pkgs/development/haskell-modules
parent178ec8974ff70ef0acffa4cc8f47f3234898ff3d (diff)
downloadnixpkgs-a52f9a18bf28c63b3e1b9ceb542ff36245a54c09.tar
nixpkgs-a52f9a18bf28c63b3e1b9ceb542ff36245a54c09.tar.gz
nixpkgs-a52f9a18bf28c63b3e1b9ceb542ff36245a54c09.tar.bz2
nixpkgs-a52f9a18bf28c63b3e1b9ceb542ff36245a54c09.tar.lz
nixpkgs-a52f9a18bf28c63b3e1b9ceb542ff36245a54c09.tar.xz
nixpkgs-a52f9a18bf28c63b3e1b9ceb542ff36245a54c09.tar.zst
nixpkgs-a52f9a18bf28c63b3e1b9ceb542ff36245a54c09.zip
haskell: Inline static overlay
We don't force `enableStaticLibraries` for Windows or WASM because it
will just fail an assertion.
Diffstat (limited to 'pkgs/development/haskell-modules')
-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 a221ce38c8a..e135374511f 100644
--- a/pkgs/development/haskell-modules/generic-builder.nix
+++ b/pkgs/development/haskell-modules/generic-builder.nix
@@ -33,7 +33,7 @@ in
 , profilingDetail ? "exported-functions"
 # TODO enable shared libs for cross-compiling
 , enableSharedExecutables ? false
-, enableSharedLibraries ? (ghc.enableShared or false)
+, enableSharedLibraries ? !stdenv.hostPlatform.isStatic && (ghc.enableShared or false)
 , enableDeadCodeElimination ? (!stdenv.isDarwin)  # TODO: use -dead_strip for darwin
 , enableStaticLibraries ? !(stdenv.hostPlatform.isWindows or stdenv.hostPlatform.isWasm)
 , enableHsc2hsViaAsm ? stdenv.hostPlatform.isWindows && stdenv.lib.versionAtLeast ghc.version "8.4"