aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorHilton Chain <hako@ultrarare.space>2024-12-10 00:56:26 +0800
committerLudovic Courtès <ludo@gnu.org>2024-12-12 12:52:08 +0100
commit9ef5533123bc2394b02fbbeaca1a5f50773b796d (patch)
tree3d3bc2c08210053867402171f48f2218f9d52e57 /gnu
parentd7c1c4bc8e715834fc26994d93cf411ae0ef209d (diff)
downloadguix-9ef5533123bc2394b02fbbeaca1a5f50773b796d.tar.gz
guix-9ef5533123bc2394b02fbbeaca1a5f50773b796d.zip
gnu: hyprlang: Fix cross-compilation.
* gnu/packages/cpp.scm (hyprlang)[arguments]<#:phases>: Set PKG_CONFIG_EXECUTABLE in CMakeLists.txt. Change-Id: Ied775ece2de83f6842bf405be76ce7f33fdce5fe Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/cpp.scm11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index a72f491fd0..4fd5f8fa00 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -678,6 +678,17 @@ library for SIMD (Single Instruction, Multiple Data) with runtime dispatch.")
(base32
"0yvfrz3hdyxzhngzhr0bgc5279ra5fv01hbfi6pdj84pz0lpaw02"))))
(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 hyprutils))
(home-page "https://wiki.hyprland.org/Hypr-Ecosystem/hyprlang/")