Closed zoranbosnjak closed 1 year ago
It looks like you are missing extra libs in the configureFlags
: https://github.com/dhall-lang/dhall-haskell/blob/849f3d1f8d0ad342f984ecbbc5b4a9bca9a9b37e/nix/shared.nix#L291-L295
e.g. a static ncurses is needed for tinfo
.
Thanks for the tip. The following additional ncurses
line is required in the configureFlags
:
"--disable-shared"
+ "--extra-lib-dirs=${pkgs.ncurses.override { enableStatic = true; }}/lib"
"--extra-lib-dirs=${pkgs.gmp6.override { withStatic = true; }}/lib"
The enableShared
argument is not recognized and has to be omitted.
A test project fails to build under
nix
when both:The static build is fine without
dhall
dependency (that is, whendhall
is removed from.cabal
file). Also, a normal (non-static) build is OK, even withdhall
dependency present.Environment
Steps to reproduce
Test project structure