guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

15/15: gnu: hyprlang: Fix cross-compilation.


From: guix-commits
Subject: 15/15: gnu: hyprlang: Fix cross-compilation.
Date: Thu, 12 Dec 2024 06:54:27 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 9ef5533123bc2394b02fbbeaca1a5f50773b796d
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Tue Dec 10 00:56:26 2024 +0800

    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>
---
 gnu/packages/cpp.scm | 11 +++++++++++
 1 file changed, 11 insertions(+)

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/";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]