about summary refs log tree commit diff
path: root/pkgs/development/compilers/gambit
diff options
context:
space:
mode:
authorJason Felice <jason.m.felice@gmail.com>2020-05-18 17:23:23 -0400
committerAustin Seipp <aseipp@pobox.com>2020-05-19 16:06:41 -0500
commit61335d51ace64fa75daa14c58768945af255d997 (patch)
treede3e13ba34adee98a55ff844738065df5f7a0a42 /pkgs/development/compilers/gambit
parentb32a59da17d76f9226ee2bc794c7f5a11573b5a3 (diff)
gambit: disable use of poll() on Darwin
Darwin has a bug which affects the use of poll() with a tty fd,
which affects gambit's REPL when at a console, causing 100% CPU
usage.

Gambit recommends this is disabled on Darwin.
Diffstat (limited to 'pkgs/development/compilers/gambit')
-rw-r--r--pkgs/development/compilers/gambit/build.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/compilers/gambit/build.nix b/pkgs/development/compilers/gambit/build.nix
index fc71128eb37c7..c6a48bd744e75 100644
--- a/pkgs/development/compilers/gambit/build.nix
+++ b/pkgs/development/compilers/gambit/build.nix
@@ -40,7 +40,6 @@ gccStdenv.mkDerivation rec {
     "--enable-gcc-opts"
     "--enable-shared"
     "--enable-absolute-shared-libs" # Yes, NixOS will want an absolute path, and fix it.
-    "--enable-poll"
     "--enable-openssl"
     "--enable-default-runtime-options=${gambit-params.defaultRuntimeOptions}"
     # "--enable-debug" # Nope: enables plenty of good stuff, but also the costly console.log
@@ -57,7 +56,9 @@ gccStdenv.mkDerivation rec {
     # "--enable-coverage"
     # "--enable-inline-jumps"
     # "--enable-char-size=1" # default is 4
-  ];
+  ] ++
+    # due not enable poll on darwin due to https://github.com/gambit/gambit/issues/498
+    lib.optional (!gccStdenv.isDarwin) "--enable-poll";
 
   configurePhase = ''
     export CC=${gcc}/bin/gcc \