From 9ef5533123bc2394b02fbbeaca1a5f50773b796d Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Tue, 10 Dec 2024 00:56:26 +0800 Subject: gnu: hyprlang: Fix cross-compilation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/cpp.scm (hyprlang)[arguments]<#:phases>: Set PKG_CONFIG_EXECUTABLE in CMakeLists.txt. Change-Id: Ied775ece2de83f6842bf405be76ce7f33fdce5fe Signed-off-by: Ludovic Courtès --- gnu/packages/cpp.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gnu') 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/") -- cgit v1.2.3