LTS 24.10 includes unix version 2.8.6.0, whose cabal file contains these fragments:
flag os-string
description: Use the new os-string package
default: False
manual: False
...
if flag(os-string)
build-depends: filepath >= 1.5.0.0, os-string >= 2.0.0
else
build-depends: filepath >= 1.4.100.0 && < 1.5.0.0
This means that unix cannot be built in its default configuration, because the version of filepath in LTS 24.10 is 1.5.4.0, and can only be built with the -fos-string flag enabled. This is potentially problematic for e.g. GHCJS and WASM.