NixOS/nixpkgs — pull request #1408 by bjornfor (2013-12-25 12:27:54+00:00)
Title: ncurses: install *.pc files (pkg-config)

To make e.g. "pkg-config --cflags ncursesw" work.

We also have ncurses v5.4 (old) in nixpkgs, but that version doesn't
know how to generate *.pc files. So I'm not touching it.

There is one thing I'd like to discuss before this is merged. In the ncurses expression there is this comment[1]:

# When building a wide-character (Unicode) build, create backward
# compatibility links from the the "normal" libraries to the
# wide-character libraries (e.g. libncurses.so to libncursesw.so).

Should that also apply to the pkg-config files? With this patch pkg-config will know about "ncursesw", but should we also make it know about "ncurses" (minus the 'w')? (Of course, if ncurses is built *without* unicode/wide chars then it'll probably generate "ncurses" *.pc files and not "ncursesw".)

My initial thought is "no". I don't know why we want to make "backward compatibility links" in the first place. Is it completely safe?

[1] https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/ncurses/default.nix#L36-38