ubports-click: Propagate required pkg-config packages properly

In file included from /build/source/src/usermetricsservice/TranslationLocatorImpl.cpp:28:
/nix/store/b78cqp0g2xf8p6gl11pxsdi2dih9v0fa-click-unstable-2023-02-22/include/click-0.4/click.h:10:10: fatal error: json-glib/json-glib.h: No such file or directory

The Requires.private (only apply to static compilation & linking) should be Requires (always apply), that way reverse
dependencies always get the required flags for json-glib etc.
This commit is contained in:
OPNA2608 2023-07-05 14:08:32 +02:00
parent b13ef5f1f2
commit 52d1e118b9

View File

@ -28,6 +28,12 @@ buildPythonApplication {
sha256 = "sha256-pNu995/w3tbz15QQVdVYBnWnAoZmqWj1DN/5PZZ0iZw=";
};
postPatch = ''
# These should be proper Requires, using the header needs their headers
substituteInPlace lib/click/click-*.pc.in \
--replace 'Requires.private' 'Requires'
'';
configureFlags = [
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
"--with-systemduserunitdir=${placeholder "out"}/lib/systemd/user"