From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmoYH-000465-M7 for guix-patches@gnu.org; Tue, 29 Aug 2017 18:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmoYE-0007Gb-JY for guix-patches@gnu.org; Tue, 29 Aug 2017 18:00:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:52533) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dmoYE-0007GX-Gs for guix-patches@gnu.org; Tue, 29 Aug 2017 18:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dmoYE-000657-As for guix-patches@gnu.org; Tue, 29 Aug 2017 18:00:02 -0400 Subject: [bug#28285] Add heimdall Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dmoXn-0003g2-4q for guix-patches@gnu.org; Tue, 29 Aug 2017 17:59:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dmoXk-00073b-10 for guix-patches@gnu.org; Tue, 29 Aug 2017 17:59:35 -0400 Received: from lepiller.eu ([89.234.186.109]:39230 helo=localhost) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dmoXj-00072U-N5 for guix-patches@gnu.org; Tue, 29 Aug 2017 17:59:31 -0400 Received: from localhost (static-176-182-42-79.ncc.abo.bbox.fr [176.182.42.79]) by localhost (OpenSMTPD) with ESMTPSA id 20853379 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Tue, 29 Aug 2017 21:59:29 +0000 (UTC) Date: Tue, 29 Aug 2017 23:58:29 +0200 From: Julien Lepiller Message-ID: <20170829235829.7a4f55cd@lepiller.eu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/7R.4QRy/D=HKhgQnmuJNA=5" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28285@debbugs.gnu.org --MP_/7R.4QRy/D=HKhgQnmuJNA=5 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, this patch adds heimdall, a tool I just used to flash replicant on my smartphone :) --MP_/7R.4QRy/D=HKhgQnmuJNA=5 Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-gnu-Add-heimdall.patch >From 415b94e8fc61fba9353094a3eceb22bb2a6563b6 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Tue, 29 Aug 2017 23:54:16 +0200 Subject: [PATCH] gnu: Add heimdall. * gnu/packages/android.scm (heimdall): New variable. --- gnu/packages/android.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index be3f50add..93c3281dd 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -23,12 +23,16 @@ (define-module (gnu packages android) #:use-module (guix packages) #:use-module (guix git-download) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) + #:use-module (gnu packages compression) #:use-module (gnu packages gnupg) + #:use-module (gnu packages libusb) #:use-module (gnu packages python) + #:use-module (gnu packages qt) #:use-module (gnu packages ssh) #:use-module (gnu packages version-control) #:use-module (gnu packages tls)) @@ -399,3 +403,39 @@ parts of the development workflow. Repo is not meant to replace Git, only to make it easier to work with Git. The repo command is an executable Python script that you can put anywhere in your path.") (license license:asl2.0))) + +(define-public heimdall + (package + (name "heimdall") + (version "1.4.2") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/Benjamin-Dobell/Heimdall" + "/archive/v" version ".tar.gz")) + (sha256 + (base32 + "1y7gwg3lipyp2zcysm2vid1qg5nwin9bxbvgzs28lz2rya4fz6sq")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f; no tests + #:phases + (modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") "/bin"))) + (mkdir-p bin) + (copy-file "bin/heimdall" (string-append bin "/heimdall")) + (copy-file "bin/heimdall-frontend" + (string-append bin "/heimdall-frontend")))))))) + (inputs + `(("libusb" ,libusb) + ("qt" ,qt) + ("zlib" ,zlib))) + (home-page "http://glassechidna.com.au/heimdall/") + (synopsis "Flash firmware onto Samsung mobile devices") + (description "Heimdall is a tool suite used to flash firmware (aka ROMs) +onto Samsung mobile devices. Heimdall connects to a mobile device over USB and +interacts with low-level software running on the device, known as Loke. Loke +and Heimdall communicate via the custom Samsung-developed protocol typically +referred to as the 'Odin 3 protocol'.") + (license license:expat))) -- 2.14.1 --MP_/7R.4QRy/D=HKhgQnmuJNA=5--