forked from mirrors/nixpkgs
notcurses: fix paths in pkg-config files
This commit is contained in:
parent
e3d63b734b
commit
b3d9858748
|
@ -44,6 +44,22 @@ stdenv.mkDerivation rec {
|
|||
lib.optional (qrcodegenSupport) "-DUSE_QRCODEGEN=ON"
|
||||
++ lib.optional (!multimediaSupport) "-DUSE_MULTIMEDIA=none";
|
||||
|
||||
# https://github.com/dankamongmen/notcurses/issues/2661
|
||||
postPatch = ''
|
||||
substituteInPlace tools/notcurses-core.pc.in \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||
substituteInPlace tools/notcurses-ffi.pc.in \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||
substituteInPlace tools/notcurses++.pc.in \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||
substituteInPlace tools/notcurses.pc.in \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/dankamongmen/notcurses";
|
||||
description = "Blingful TUIs and character graphics";
|
||||
|
|
Loading…
Reference in a new issue