libcotp: fix paths in pkg-config file
This commit is contained in:
committed by
Artturin
parent
d1f14fab9b
commit
3bbc6d7842
@@ -14,6 +14,13 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ libbaseencode libgcrypt ];
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
# https://github.com/paolostivanin/libcotp/issues/32
|
||||
postPatch = ''
|
||||
substituteInPlace cotp.pc.in \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
|
||||
--replace '$'{prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "C library that generates TOTP and HOTP";
|
||||
homepage = "https://github.com/paolostivanin/libcotp";
|
||||
|
||||
Reference in New Issue
Block a user