missing zlib inside nix-shell running cabal new-build - Nix

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Rizary

So I got the following error:

cabal: Missing dependency on a foreign library:
* Missing (or bad) header file: zlib.h
* Missing (or bad) C library: z

When running cabal new-build inside nix-shell. I already install zlib and zlib.dev but nothing fixed it.
How do we add zlib correctly?

Torsten Schmits

try adding zlib.out, but I have one machine where I still have that problem with it

Rizary

nope, still no luck.