(address . guix-patches@gnu.org)(name . Hilton Chain)(address . hako@ultrarare.space)
* gnu/packages/cpp.scm (hyprutils)[arguments]<#:phases>: Set
PKG_CONFIG_EXECUTABLE in CMakeLists.txt.
Change-Id: Ia08cf44230c311f444e4881bdca2b759cda9b112
---
gnu/packages/cpp.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
Toggle diff (33 lines)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index d70b2dbd06..a72f491fd0 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -701,6 +701,17 @@ (define-public hyprutils
(base32
"01dh24rf62gb6xm32f7mfv6wx0dxprr1q9y73hvv7xanrjyia2zn"))))
(build-system cmake-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-cross-compilation
+ (lambda _
+ (substitute* "CMakeLists.txt"
+ (("find_package.PkgConfig" all)
+ (string-append
+ "set(PKG_CONFIG_EXECUTABLE " #$(pkg-config-for-target) ")\n"
+ all))))))))
(native-inputs (list gcc-13 pkg-config))
(inputs (list pixman))
(home-page "https://github.com/hyprwm/hyprutils")
base-commit: 9d09b0cf841fb657a1aec12e9bab68e00c2b493c
prerequisite-patch-id: f132b4af7b85df465998e4f459bf729f8b66f320
prerequisite-patch-id: 71423f8b55ad6f04c3f3d647cbd9d42c6c332e06
prerequisite-patch-id: 1076bb75432f82f35d834ca4f97dffebd0ce98d5
prerequisite-patch-id: ecd87e69b7aebebd64256db106ed96dc12f6c12d
prerequisite-patch-id: e0e81738807e886ac5109a7d26f841204a35d8a7
prerequisite-patch-id: f27c33b6c7f5dcb37c36551ecde29f1f0c734935
prerequisite-patch-id: fc6ad5af54f75869a657c065c86b262d74a1efff
--
2.46.0