diff options
| author | Efraim Flashner <efraim@flashner.co.il> | 2022-12-15 12:29:12 +0200 |
|---|---|---|
| committer | Efraim Flashner <efraim@flashner.co.il> | 2022-12-15 12:30:26 +0200 |
| commit | 3ad3869297fd327ef417b1ecb95c2c4caf53d2e6 (patch) | |
| tree | 23a692e12ba88208548f227a7800360c1ba0cab1 /gnu/packages/hardware.scm | |
| parent | f4dc53881b79b324ce7da731ac579a41c5078a48 (diff) | |
gnu: rkdeveloptool: Fix build failure.
This change was tested against a Pinebook Pro.
* gnu/packages/hardware.scm (rkdeveloptool)[source]: Add snippet to fix
build errors based on upstream pull request.
Diffstat (limited to 'gnu/packages/hardware.scm')
| -rw-r--r-- | gnu/packages/hardware.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm index 65558ffe08f..1b8ba9bc436 100644 --- a/gnu/packages/hardware.scm +++ b/gnu/packages/hardware.scm | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | ;;; Copyright © 2022 Marius Bakke <marius@gnu.org> | 14 | ;;; Copyright © 2022 Marius Bakke <marius@gnu.org> |
| 15 | ;;; Copyright © 2022 Marcel Kupiec <formbi@protonmail.com> | 15 | ;;; Copyright © 2022 Marcel Kupiec <formbi@protonmail.com> |
| 16 | ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> | 16 | ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> |
| 17 | ;;; Copyright © 2022 Efraim Flashner <efraim@flashner.co.il> | ||
| 17 | ;;; | 18 | ;;; |
| 18 | ;;; This file is part of GNU Guix. | 19 | ;;; This file is part of GNU Guix. |
| 19 | ;;; | 20 | ;;; |
| @@ -1132,7 +1133,14 @@ supported by the Linux kernel.") | |||
| 1132 | (commit commit))) | 1133 | (commit commit))) |
| 1133 | (file-name (git-file-name name version)) | 1134 | (file-name (git-file-name name version)) |
| 1134 | (sha256 | 1135 | (sha256 |
| 1135 | (base32 "0zwrkqfxd671iy69v3q0844gfdpm1yk51i9qh2rqc969bd8glxga")))) | 1136 | (base32 "0zwrkqfxd671iy69v3q0844gfdpm1yk51i9qh2rqc969bd8glxga")) |
| 1137 | (snippet | ||
| 1138 | #~(begin | ||
| 1139 | ;; https://github.com/rockchip-linux/rkdeveloptool/pull/57 | ||
| 1140 | (use-modules (guix build utils)) | ||
| 1141 | (substitute* "main.cpp" | ||
| 1142 | (("snprintf\\(buffer, sizeof\\(buffer\\), \"\\%s\", chip)") | ||
| 1143 | "memccpy(buffer, chip, '\\0', sizeof(buffer))")))))) | ||
| 1136 | (build-system gnu-build-system) | 1144 | (build-system gnu-build-system) |
| 1137 | (native-inputs | 1145 | (native-inputs |
| 1138 | (list autoconf automake pkg-config)) | 1146 | (list autoconf automake pkg-config)) |
