libdigidocpp: fix INTERFACE_INCLUDE_DIRECTORIES path in cmake file

This is used by qdigidoc 4.8.0 and points to the lib output, but needs
to point to the dev output.
This commit is contained in:
Florian Klink
2025-08-01 22:54:32 +02:00
parent a0e73947b2
commit ac6331ad51
+7
View File
@@ -59,6 +59,13 @@ stdenv.mkDerivation rec {
# `-L${libtool.lib}/lib -ltdl` for `CMAKE_DL_LIBS`, but that's a world rebuild.
env.NIX_LDFLAGS = "-L${libtool.lib}/lib";
# Prevent cmake from creating a file that sets INTERFACE_INCLUDE_DIRECTORIES to the wrong location,
# causing downstream build failures.
postFixup = ''
sed '/^ INTERFACE_INCLUDE_DIRECTORIES/s|"[^"]*/include"|"${placeholder "dev"}/include"|' \
-i "$dev"/lib/cmake/libdigidocpp/libdigidocpp-config.cmake
'';
meta = with lib; {
description = "Library for creating DigiDoc signature files";
mainProgram = "digidoc-tool";