summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Moore <lockbox@struct.foo>2025-05-25 11:32:55 -0400
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2025-06-06 22:39:03 +0200
commit25589cc95f52a2225b641bcdb036bfacf20ce866 (patch)
treeeff7d40ca23b33f9c72ed226e9a998bea0dd8c25
parentb32a47f26c8ea6b7cb7ade944f0251cb59b87178 (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.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 9b2ec85de2f..82b4cf23ec2 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -13,6 +13,7 @@
13;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net> 13;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
14;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com> 14;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
15;;; Copyright © 2023 Camilo Q.S. (Distopico) <distopico@riseup.net> 15;;; Copyright © 2023 Camilo Q.S. (Distopico) <distopico@riseup.net>
16;;; Copyright © 2025 Jordan Moore <lockbox@struct.foo>
16;;; 17;;;
17;;; This file is part of GNU Guix. 18;;; This file is part of GNU Guix.
18;;; 19;;;
@@ -1325,3 +1326,35 @@ Java bytecode, which simplifies the analysis of Android applications.")
1325with Android devices using MTP. It also allows the Android device to be 1326with Android devices using MTP. It also allows the Android device to be
1326mounted via FUSE.") 1327mounted via FUSE.")
1327 (license license:lgpl2.1+))) 1328 (license license:lgpl2.1+)))
1329
1330(define-public simg2img
1331 (package
1332 (name "simg2img")
1333 (version "1.1.5")
1334 (source
1335 (origin
1336 (method git-fetch)
1337 (uri (git-reference
1338 (url "https://github.com/anestisb/android-simg2img")
1339 (commit version)))
1340 (sha256
1341 (base32
1342 "0drwvqxbhajka580j93z8ldckhjlpr0i84nh20krdpxcp54xvldh"))))
1343 (build-system gnu-build-system)
1344 (arguments
1345 ;; The Makefile uses PREFIX to set the installation prefix.
1346 (list #:make-flags
1347 #~(list
1348 (string-append "PREFIX=" (assoc-ref %outputs "out")))
1349 #:tests? #f ; no tests provided upstream
1350 #:phases
1351 ;; There is no configure step.
1352 #~(modify-phases %standard-phases (delete 'configure))))
1353 (inputs (list zlib))
1354 (home-page "https://github.com/anestisb/android-simg2img")
1355 (synopsis "Convert Android sparse images to raw ext4 images")
1356 (description
1357 "This package provides a standalone port of AOSP's libsparse that converts
1358Android sparse filesystem images into raw ext4 images, avoiding the need for
1359the full Android build chain.")
1360 (license license:asl2.0)))