mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
gnu: protobuf-c: Fix cross-compilation.
* gnu/packages/protobuf.scm (protobuf-c): Fix cross-compilation. [native-inputs]: When cross-compilation, add protobuf. [arguments]<#:configure-flags>: When cross-compilation, Set PROTOC variable. Change-Id: Idd660f526b7c90277cb4399997cdb7ce72e4f1c5 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
This commit is contained in:
parent
bf3482bc4d
commit
e3ab05320d
1 changed files with 12 additions and 2 deletions
|
@ -8,7 +8,7 @@
|
||||||
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
||||||
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
||||||
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
|
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
|
||||||
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
|
;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -262,7 +262,17 @@ (define-public protobuf-c
|
||||||
"17rk42r3gcc46c2svd1mxs542wnl4mi77a6klkhg6wl1a36zmi2c"))))
|
"17rk42r3gcc46c2svd1mxs542wnl4mi77a6klkhg6wl1a36zmi2c"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(inputs (list protobuf))
|
(inputs (list protobuf))
|
||||||
(native-inputs (list pkg-config))
|
(native-inputs (append (if (%current-target-system)
|
||||||
|
(list protobuf)
|
||||||
|
'())
|
||||||
|
(list pkg-config)))
|
||||||
|
(arguments (if (%current-target-system)
|
||||||
|
(list #:configure-flags
|
||||||
|
#~(list
|
||||||
|
(string-append
|
||||||
|
"PROTOC="
|
||||||
|
(search-input-file %build-inputs "bin/protoc"))))
|
||||||
|
(list)))
|
||||||
(home-page "https://github.com/protobuf-c/protobuf-c")
|
(home-page "https://github.com/protobuf-c/protobuf-c")
|
||||||
(synopsis "Protocol Buffers implementation in C")
|
(synopsis "Protocol Buffers implementation in C")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue