From patchwork Sun Sep 18 06:38:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Hrbek X-Patchwork-Id: 42701 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B535E27BBEA; Sun, 18 Sep 2022 07:39:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2739927BBE9 for ; Sun, 18 Sep 2022 07:39:40 +0100 (BST) Received: from localhost ([::1]:45070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZnxr-0006Ik-AZ for patchwork@mira.cbaines.net; Sun, 18 Sep 2022 02:39:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59328) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZnxG-0006IT-Q2 for guix-patches@gnu.org; Sun, 18 Sep 2022 02:39:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48545) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oZnxG-0004vQ-DK for guix-patches@gnu.org; Sun, 18 Sep 2022 02:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oZnxG-0006OX-8E for guix-patches@gnu.org; Sun, 18 Sep 2022 02:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57902] [PATCH] New package idevicerestore + libirecovery Resent-From: Jacob Hrbek Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 18 Sep 2022 06:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57902 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57902@debbugs.gnu.org Cc: Jacob Hrbek X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166348310624538 (code B ref -1); Sun, 18 Sep 2022 06:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Sep 2022 06:38:26 +0000 Received: from localhost ([127.0.0.1]:47623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZnwg-0006Nh-8Y for submit@debbugs.gnu.org; Sun, 18 Sep 2022 02:38:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:58246) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oZnwd-0006NW-0u for submit@debbugs.gnu.org; Sun, 18 Sep 2022 02:38:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZnwb-0006FJ-91 for guix-patches@gnu.org; Sun, 18 Sep 2022 02:38:22 -0400 Received: from mail-4018.proton.ch ([185.70.40.18]:44511) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZnwY-0004nm-Vq for guix-patches@gnu.org; Sun, 18 Sep 2022 02:38:20 -0400 Date: Sun, 18 Sep 2022 06:38:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rixotstudio.cz; s=protonmail; t=1663483096; x=1663742296; bh=Li3FmbPJN8p4aeP8VQkbC/BwPo8zxl5bf10reepz448=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID; b=J1+ps7cgBw5NmkjIotuFUKnduCp4P4dzTlJiAn8+5p9/xDCCKKW0Nc5AqYTFhbFeE dfa7B99jq+IghuWKxZEEVDnSyojHulHG4qDCbzAP0vtYf1ZFgrenZVV0sufnzhTUtI 0DY8Gyw+a3ij07gPrX+D9Baa0yz1p4u0OLSAR3q4DR3EPYI4wCsAMW2EUtUQg96bsS 8yhU20h4Y5V4mAxuu8vWREqmjVwFGHGmpIsj9W/mKhJe22eVZdGNpGmJPJjEnQDVlN WFTZ4Zv5xSmkWDGUkO+ONVteJoqfs+6LUkqyJDMshk0Q0gBfgVROKg8nrblIdoBBiO 0XpnbWmXxILFw== From: Jacob Hrbek Message-ID: <20220918063804.13779-1-kreyren@rixotstudio.cz> Feedback-ID: 30491181:user:proton MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.18; envelope-from=kreyren@rixotstudio.cz; helo=mail-4018.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/libusb.scm | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (define-public libimobiledevice (package (name "libimobiledevice") --- 2.37.1 diff --git a/gnu/packages/libusb.scm b/gnu/packages/libusb.scm index 8a5967f7b4..c718146745 100644 --- a/gnu/packages/libusb.scm +++ b/gnu/packages/libusb.scm @@ -41,6 +41,8 @@ (define-module (gnu packages libusb) #:use-module (guix build-system glib-or-gtk) #:use-module (guix build-system python) #:use-module (gnu packages autotools) + #:use-module (gnu packages compression) + #:use-module (gnu packages curl) #:use-module (gnu packages gnupg) #:use-module (gnu packages gtk) #:use-module (gnu packages java) @@ -49,6 +51,7 @@ (define-module (gnu packages libusb) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-xyz) + #:use-module (gnu packages readline) #:use-module (gnu packages tls) #:use-module (gnu packages xiph)) @@ -389,6 +392,52 @@ (define-public libu sbmuxd @code{usbmuxd} daemon.") (license license:lgpl2.1+))) +(define-public libirecovery + (package + (name "libirecovery") + (version "1.0.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/libimobiledevice" + "/libirecovery/releases/download/" version + "/libirecovery-" version ".tar.bz2")) + (sha256 + (base32 + "1d6r9984plynbbiqda8jd7ihnkg6wc4v0iirv3hw4vsv1ahsp86d")))) + (build-system gnu-build-system) + (native-inputs (list readline + pkg-config + libusb)) + (home-page "https://libimobiledevice.org/") + (synopsis "The libirecovery library allows communication with iBoot/iBSS of iOS devices via USB") + (description "libirecovery is a cross-platform library which implements communication to iBoot/iBSS found on Apple' s iOS devices via USB.") + (license license:lgpl2.1))) + +(define-public idevicerestore + (package + (name "idevicerestore") + (version "1.0.0") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/libimobiledevice" + "/idevicerestore/releases/download/" version + "/idevicerestore-" version ".tar.bz2")) + (sha256 + (base32 + "1xrnk1hc9cjcqv8x8l5ankv6f33r5wnpmrwri4pgv5sk6632ww9j")))) + (build-system gnu-build-system) + (native-inputs (list pkg-config + libusb + libirecovery + libimobiledevice + libzip + curl + zlib)) + (home-page "https://libimobiledevice.org/") + (synopsis "CLI tool to restore firmware files to iOS devices") + (descr iption "Utility used to restore bricked or otherwise broken iOS devices") + (license license:lgpl3))) +