mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 02:47:53 +00:00
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:
parent
b13ef5f1f2
commit
52d1e118b9
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user