From 45fea1b10467dae4310064112b993037b7f827c3 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Mon, 10 Jan 2022 02:54:17 +0100 Subject: [PATCH 3/3] gnu: Add boot-deploy. * gnu/packages/android.scm (boot-deploy): New variable. diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index aa9b0e0fe6..0342e30cef 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -46,6 +46,7 @@ (define-module (gnu packages android) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) #:use-module (gnu packages admin) + #:use-module (gnu packages algebra) #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages check) @@ -1023,6 +1024,42 @@ (define-public abootimg safest way, on a file image.") (license license:gpl2+))) +(define-public boot-deploy + (package + (name "boot-deploy") + (version "0.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/postmarketOS/boot-deploy") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vh8gjprsyp4zwmpgasf4gyxclm3yyr32pf39bf218690m86fijq")))) + (build-system gnu-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "bash" "test_boot_deploy_functions.sh")))) + (replace 'install + (lambda* _ + (install-file "boot-deploy" + (string-append #$output "/bin"))))))) + (native-inputs (list bc)) + (inputs (list bash-minimal)) + (synopsis "Boot deploy for PostmarketOS devices") + (description + "This package provides tools to generate and deploy images for +PostmarketOS devices.") + (home-page "https://gitlab.com/postmarketOS/boot-deploy") + (license license:gpl3+))) + (define-public python-androguard (package (name "python-androguard") -- 2.35.1