Merge pull request #241683 from OPNA2608/fix/click_pkgconfig_requires

ubports-click: Propagate required pkg-config packages properly
This commit is contained in:
Sandro 2023-07-12 19:43:14 +02:00 committed by GitHub
commit ff6e67d2c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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"