diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-28 11:33:49 +0000 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-28 17:46:24 +0000 |
| commit | 798e1e0c8e7b25cbd0982df98dde4344296d65ce (patch) | |
| tree | 5a55c16ecf6d2c8cf54ae922b138817a0d02d4a8 /gnu | |
| parent | e4610f6dd45b031a4c28293b82d4299777f1207b (diff) | |
gnu: binwalk: Move to firmware.
* gnu/packages/python-xyz.scm (binwalk): Move from here ...
* gnu/packages/firmware.scm: ... to here.
* gnu/packages/diffoscope.scm: Add (gnu packages firmware) module.
Change-Id: Id6c78aec4a576deaa99c7d3287338e2a9e2b9ca4
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/diffoscope.scm | 1 | ||||
| -rw-r--r-- | gnu/packages/firmware.scm | 46 | ||||
| -rw-r--r-- | gnu/packages/python-xyz.scm | 39 |
3 files changed, 44 insertions, 42 deletions
diff --git a/gnu/packages/diffoscope.scm b/gnu/packages/diffoscope.scm index 005be166ba0..3a910726094 100644 --- a/gnu/packages/diffoscope.scm +++ b/gnu/packages/diffoscope.scm | |||
| @@ -35,6 +35,7 @@ | |||
| 35 | #:use-module (gnu packages compression) | 35 | #:use-module (gnu packages compression) |
| 36 | #:use-module (gnu packages cpio) | 36 | #:use-module (gnu packages cpio) |
| 37 | #:use-module (gnu packages dbm) | 37 | #:use-module (gnu packages dbm) |
| 38 | #:use-module (gnu packages firmware) | ||
| 38 | #:use-module (gnu packages gettext) | 39 | #:use-module (gnu packages gettext) |
| 39 | #:use-module (gnu packages ghostscript) | 40 | #:use-module (gnu packages ghostscript) |
| 40 | #:use-module (gnu packages gnome) | 41 | #:use-module (gnu packages gnome) |
diff --git a/gnu/packages/firmware.scm b/gnu/packages/firmware.scm index 35902eb5015..e04e933f58d 100644 --- a/gnu/packages/firmware.scm +++ b/gnu/packages/firmware.scm | |||
| @@ -3,12 +3,14 @@ | |||
| 3 | ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org> | 3 | ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org> |
| 4 | ;;; Copyright © 2017 David Craven <david@craven.ch> | 4 | ;;; Copyright © 2017 David Craven <david@craven.ch> |
| 5 | ;;; Copyright © 2017, 2018, 2022-2025 Efraim Flashner <efraim@flashner.co.il> | 5 | ;;; Copyright © 2017, 2018, 2022-2025 Efraim Flashner <efraim@flashner.co.il> |
| 6 | ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr> | 6 | ;;; Copyright © 2018, 2020, 2021, 2022 Tobias Geerinckx-Rice <me@tobias.gr> |
| 7 | ;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org> | 7 | ;;; Copyright © 2018, 2019 Vagrant Cascadian <vagrant@debian.org> |
| 8 | ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> | 8 | ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> |
| 9 | ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net> | ||
| 9 | ;;; Copyright © 2020, 2021, 2022 Marius Bakke <marius@gnu.org> | 10 | ;;; Copyright © 2020, 2021, 2022 Marius Bakke <marius@gnu.org> |
| 10 | ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com> | 11 | ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com> |
| 11 | ;;; Copyright © 2022, 2023, 2025 Maxim Cournoyer <maxim@guixotic.coop> | 12 | ;;; Copyright © 2021, 2022, 2023, 2025 Maxim Cournoyer <maxim@guixotic.coop> |
| 13 | ;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space> | ||
| 12 | ;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com> | 14 | ;;; Copyright © 2023 Foundation Devices, Inc. <hello@foundationdevices.com> |
| 13 | ;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com> | 15 | ;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com> |
| 14 | ;;; Copyright © 2024 Ricardo Wurmus <rekado@elephly.net> | 16 | ;;; Copyright © 2024 Ricardo Wurmus <rekado@elephly.net> |
| @@ -215,6 +217,44 @@ assembler, disassembler, and debugging tools for the Linux kernel b43 wireless | |||
| 215 | driver.") | 217 | driver.") |
| 216 | (license license:gpl2)))) | 218 | (license license:gpl2)))) |
| 217 | 219 | ||
| 220 | (define-public binwalk | ||
| 221 | (package | ||
| 222 | (name "binwalk") | ||
| 223 | ;; TODO: It's the latest non Rust version, see: | ||
| 224 | ;; <https://codeberg.org/guix/guix/issues/3919>. | ||
| 225 | (version "2.3.4") | ||
| 226 | (source | ||
| 227 | (origin | ||
| 228 | (method git-fetch) | ||
| 229 | (uri (git-reference | ||
| 230 | (url "https://github.com/ReFirmLabs/binwalk") | ||
| 231 | (commit (string-append "v" version)))) | ||
| 232 | (file-name (git-file-name name version)) | ||
| 233 | (sha256 | ||
| 234 | (base32 "0cfm1khckq986l0q68kmfyfagc6zmb94hgjjm847fjcil77dnlw6")) | ||
| 235 | (modules '((guix build utils))) | ||
| 236 | (snippet | ||
| 237 | #~(begin | ||
| 238 | (for-each delete-file | ||
| 239 | (list "testing/tests/input-vectors/firmware.zip" | ||
| 240 | "testing/tests/test_firmware_zip.py")))))) | ||
| 241 | (build-system pyproject-build-system) | ||
| 242 | (arguments | ||
| 243 | `(#:phases | ||
| 244 | (modify-phases %standard-phases | ||
| 245 | (add-before 'check 'set-home | ||
| 246 | (lambda _ | ||
| 247 | (setenv "HOME" "")))))) | ||
| 248 | (native-inputs | ||
| 249 | (list python-nose python-setuptools)) | ||
| 250 | (home-page "https://github.com/ReFirmLabs/binwalk") | ||
| 251 | (synopsis "Firmware analysis tool") | ||
| 252 | (description "Binwalk is a tool for analyzing, reverse engineering, and | ||
| 253 | extracting firmware images") | ||
| 254 | (license license:expat))) | ||
| 255 | |||
| 256 | (define-deprecated-package python-binwalk binwalk) | ||
| 257 | |||
| 218 | (define-public fwupd-efi | 258 | (define-public fwupd-efi |
| 219 | (package | 259 | (package |
| 220 | (name "fwupd-efi") | 260 | (name "fwupd-efi") |
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ca4ab48c054..2d63f7e55f9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -23086,45 +23086,6 @@ pytest-fixtures-style dependency injection.") | |||
| 23086 | binary or text.") | 23086 | binary or text.") |
| 23087 | (license license:bsd-3))) | 23087 | (license license:bsd-3))) |
| 23088 | 23088 | ||
| 23089 | (define-public binwalk | ||
| 23090 | (package | ||
| 23091 | (name "binwalk") | ||
| 23092 | ;; TODO: It's the latest non Rust version, see: | ||
| 23093 | ;; <https://codeberg.org/guix/guix/issues/3919>. | ||
| 23094 | (version "2.3.4") | ||
| 23095 | (source | ||
| 23096 | (origin | ||
| 23097 | (method git-fetch) | ||
| 23098 | (uri (git-reference | ||
| 23099 | (url "https://github.com/ReFirmLabs/binwalk") | ||
| 23100 | (commit (string-append "v" version)))) | ||
| 23101 | (file-name (git-file-name name version)) | ||
| 23102 | (sha256 | ||
| 23103 | (base32 "0cfm1khckq986l0q68kmfyfagc6zmb94hgjjm847fjcil77dnlw6")) | ||
| 23104 | (modules '((guix build utils))) | ||
| 23105 | (snippet | ||
| 23106 | #~(begin | ||
| 23107 | (for-each delete-file | ||
| 23108 | (list "testing/tests/input-vectors/firmware.zip" | ||
| 23109 | "testing/tests/test_firmware_zip.py")))))) | ||
| 23110 | (build-system pyproject-build-system) | ||
| 23111 | (arguments | ||
| 23112 | `(#:phases | ||
| 23113 | (modify-phases %standard-phases | ||
| 23114 | (add-before 'check 'set-home | ||
| 23115 | (lambda _ | ||
| 23116 | (setenv "HOME" "")))))) | ||
| 23117 | (native-inputs | ||
| 23118 | (list python-nose python-setuptools)) | ||
| 23119 | (home-page "https://github.com/ReFirmLabs/binwalk") | ||
| 23120 | (synopsis "Firmware analysis tool") | ||
| 23121 | (description "Binwalk is a tool for analyzing, reverse engineering, and | ||
| 23122 | extracting firmware images") | ||
| 23123 | (license license:expat))) | ||
| 23124 | |||
| 23125 | (define-deprecated-package python-binwalk | ||
| 23126 | binwalk) | ||
| 23127 | |||
| 23128 | (define-public python-bson | 23089 | (define-public python-bson |
| 23129 | (package | 23090 | (package |
| 23130 | (name "python-bson") | 23091 | (name "python-bson") |
