-
Notifications
You must be signed in to change notification settings - Fork 260
Description
First of all, thank you for providing a nix-based development/build environment for Haskell 👏
I'm trying to build up a Haskell development environment for my Stack-based project with haskell.nix. The nix shell works fine so far. However, as soon as I use the evaluate feature of the HLS (click on “Evaluate”), I get the following glibc error:
(GetLinkable,NormalizedFilePath "<path-to-project>/purely-effectful/src/EffectfulDemo.hs")/nix/store/xx7cm72qy2c0643cm1ipngd87aqwkcdp-glibc-2.40-66/lib/libc.so.6: version 'GLIBC_2.42' not found (required by /nix/store/dflk9i1b2njqsjy9q9m45q1w50q66fpc-ghc-9.10.3/lib/ghc-9.10.3/lib/../lib/x86_64-linux-ghc-9.10.3/libHSunix-2.8.7.0-cfb5-ghc9.10.3.so)c
My nix shell uses glibc 2.40:
I am using NixOS 26.05 which uses glibc 2.42:
Did I miss anything? Or have I possibly configured something incorrectly? Thank you for your response. If you need any further information from me, please let me know.
Edit 02/19/2026:
Could it be because the flag had to be set and therefore the unix library is built based on my system glibc?