about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-07-12 19:43:14 +0200
committerGitHub <noreply@github.com>2023-07-12 19:43:14 +0200
commitff6e67d2c2e9c8971a0fd8abb9b745e65bb17887 (patch)
tree5c8f1a75da2c46aaa0c78c2b6f8bf2a734d99935
parent0e1fc501c6072287c4dd49b1178d77b0c7918a0a (diff)
parent52d1e118b9f1dc2479e114e9343a14770c3c7e38 (diff)
Merge pull request #241683 from OPNA2608/fix/click_pkgconfig_requires
ubports-click: Propagate required pkg-config packages properly
-rw-r--r--pkgs/development/tools/click/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/tools/click/default.nix b/pkgs/development/tools/click/default.nix
index 4adaf11088b82..f8d73eec2580f 100644
--- a/pkgs/development/tools/click/default.nix
+++ b/pkgs/development/tools/click/default.nix
@@ -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"