diff options
author | Jordan Moore <lockbox@struct.foo> | 2025-05-25 11:32:55 -0400 |
---|---|---|
committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2025-06-06 22:39:03 +0200 |
commit | 25589cc95f52a2225b641bcdb036bfacf20ce866 (patch) | |
tree | eff7d40ca23b33f9c72ed226e9a998bea0dd8c25 | |
parent | b32a47f26c8ea6b7cb7ade944f0251cb59b87178 (diff) |
gnu: Add simg2img.
* gnu/packages/android.scm (simg2img): New variable.
Change-Id: I593420741293324ef880a44d31e58759ed0b9a03
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
-rw-r--r-- | gnu/packages/android.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 9b2ec85de2..82b4cf23ec 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -13,6 +13,7 @@ ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net> ;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com> ;;; Copyright © 2023 Camilo Q.S. (Distopico) <distopico@riseup.net> +;;; Copyright © 2025 Jordan Moore <lockbox@struct.foo> ;;; ;;; This file is part of GNU Guix. ;;; @@ -1325,3 +1326,35 @@ Java bytecode, which simplifies the analysis of Android applications.") with Android devices using MTP. It also allows the Android device to be mounted via FUSE.") (license license:lgpl2.1+))) + +(define-public simg2img + (package + (name "simg2img") + (version "1.1.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/anestisb/android-simg2img") + (commit version))) + (sha256 + (base32 + "0drwvqxbhajka580j93z8ldckhjlpr0i84nh20krdpxcp54xvldh")))) + (build-system gnu-build-system) + (arguments + ;; The Makefile uses PREFIX to set the installation prefix. + (list #:make-flags + #~(list + (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:tests? #f ; no tests provided upstream + #:phases + ;; There is no configure step. + #~(modify-phases %standard-phases (delete 'configure)))) + (inputs (list zlib)) + (home-page "https://github.com/anestisb/android-simg2img") + (synopsis "Convert Android sparse images to raw ext4 images") + (description + "This package provides a standalone port of AOSP's libsparse that converts +Android sparse filesystem images into raw ext4 images, avoiding the need for +the full Android build chain.") + (license license:asl2.0))) |