@@ -40,7 +40,6 @@ gccStdenv.mkDerivation rec {
4040 "--enable-gcc-opts"
4141 "--enable-shared"
4242 "--enable-absolute-shared-libs" # Yes, NixOS will want an absolute path, and fix it.
43− "--enable-poll"
4443 "--enable-openssl"
4544 "--enable-default-runtime-options=${gambit-params.defaultRuntimeOptions}"
4645 # "--enable-debug" # Nope: enables plenty of good stuff, but also the costly console.log
@@ -57,7 +56,9 @@ gccStdenv.mkDerivation rec {
5756 # "--enable-coverage"
5857 # "--enable-inline-jumps"
5958 # "--enable-char-size=1" # default is 4
60− ];
59+ ] ++
60+ # due not enable poll on darwin due to https://github.com/gambit/gambit/issues/498
61+ lib.optional (!gccStdenv.isDarwin) "--enable-poll";
6162
6263 configurePhase = ''
6364 export CC=${gcc}/bin/gcc \