diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-01-05 03:39:32 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-01-11 03:17:29 +0000 |
commit | a52f9a18bf28c63b3e1b9ceb542ff36245a54c09 (patch) | |
tree | e40b404c8be198dfb933e5786b723f7ce83bd9a2 /pkgs/development/haskell-modules | |
parent | 178ec8974ff70ef0acffa4cc8f47f3234898ff3d (diff) | |
download | nixpkgs-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.nix | 2 |
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" |