diff options
author | Hilton Chain <hako@ultrarare.space> | 2024-12-10 00:56:25 +0800 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-12-12 12:52:08 +0100 |
commit | d7c1c4bc8e715834fc26994d93cf411ae0ef209d (patch) | |
tree | 15e1546aa387e15c30300d6e4e37c1be8fddcc0f /gnu/packages | |
parent | 1fad7d9d15d215d847d0742dfcc7f7efd19fccbc (diff) | |
download | guix-d7c1c4bc8e715834fc26994d93cf411ae0ef209d.tar.gz guix-d7c1c4bc8e715834fc26994d93cf411ae0ef209d.zip |
gnu: hyprutils: Fix cross-compilation.
* gnu/packages/cpp.scm (hyprutils)[arguments]<#:phases>: Set
PKG_CONFIG_EXECUTABLE in CMakeLists.txt.
Change-Id: Ia08cf44230c311f444e4881bdca2b759cda9b112
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/cpp.scm | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ language used in Hyprland.") (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") |