Skip to content

Commit 3077d0b

Browse files
committed
Disable static libraries for GHCJS
1 parent cff442f commit 3077d0b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/component-options.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, haskellLib, ... }:
1+
{ pkgs, lib, haskellLib, ... }:
22
{
33
options = {
44
buildable = lib.mkOption {
@@ -104,7 +104,8 @@
104104
enableStatic = lib.mkOption {
105105
description = "If set, enables building static libraries and executables.";
106106
type = lib.types.bool;
107-
default = true;
107+
# Disabled for ghcjs, see https://gitlab.haskell.org/ghc/ghc/-/issues/23235
108+
default = !pkgs.stdenv.hostPlatform.isGhcjs;
108109
};
109110

110111
enableShared = lib.mkOption {

0 commit comments

Comments
 (0)