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:
parent
61abd839c4
commit
958f27af75
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user