ncurses: provide pkg-config alias files for libtinfo / libtic

Some build scripts (e.g. u-boot tools) look for pkg-config configuration
for libtinfo specifically. The way ncurses is configured for nixpkgs,
libtinfo and libtic functionality is provided by libncursesw, so alias
the pkg-config .pc with some symlinks.

Inspired-by: 3c2606603a/PKGBUILD (L82)
This commit is contained in:
Pierre Bourdon 2023-07-03 10:22:01 +02:00
parent 61abd839c4
commit 958f27af75
No known key found for this signature in database
GPG key ID: 6FB80DCD84DA0F1C

View file

@ -139,6 +139,13 @@ stdenv.mkDerivation (finalAttrs: {
done
done
# add pkg-config aliases for libraries that are built-in to libncurses(w)
for library in tinfo tic; do
for suffix in "" w; do
ln -svf ncurses$suffix.pc $dev/lib/pkgconfig/$library$suffix.pc
done
done
# move some utilities to $bin
# these programs are used at runtime and don't really belong in $dev
moveToOutput "bin/clear" "$out"