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

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


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


nope, still no luck.