Skip to content

Commit

Permalink
package.nix: Disable GC on OpenBSD
Browse files Browse the repository at this point in the history
Nix fails to build on OpenBSD with a linking error due to a non-found
symbol in boehm-gc. Just disable the GC until we can find a proper
workaround.

(cherry picked from commit fecc1ca)
  • Loading branch information
artemist authored and mergify[bot] committed Oct 28, 2024
1 parent d6ece7e commit 0ae9091
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@
#
# Temporarily disabled on Windows because the `GC_throw_bad_alloc`
# symbol is missing during linking.
, enableGC ? !stdenv.hostPlatform.isWindows
#
# Disabled on OpenBSD because of missing `_data_start` symbol while linking
, enableGC ? !stdenv.hostPlatform.isWindows && !stdenv.hostPlatform.isOpenBSD

# Whether to enable Markdown rendering in the Nix binary.
, enableMarkdown ? !stdenv.hostPlatform.isWindows
Expand Down

0 comments on commit 0ae9091

Please sign in to comment.