From patchwork Mon Mar 15 17:58:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Prikler X-Patchwork-Id: 27841 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 33F2127BC54; Mon, 15 Mar 2021 18:58:22 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id ACE7327BC52 for ; Mon, 15 Mar 2021 18:58:21 +0000 (GMT) Received: from localhost ([::1]:41714 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLsQ0-00072v-RB for patchwork@mira.cbaines.net; Mon, 15 Mar 2021 14:58:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLs9J-0006ki-Su for guix-patches@gnu.org; Mon, 15 Mar 2021 14:41:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:53842) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLs9J-0007NI-Ir for guix-patches@gnu.org; Mon, 15 Mar 2021 14:41:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLs9J-0005rr-Fm for guix-patches@gnu.org; Mon, 15 Mar 2021 14:41:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44492] [PATCH v7 42/51] gnu: Add rust-secret-service-1. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Mar 2021 18:41:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44492 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo To: 44492@debbugs.gnu.org Received: via spool by 44492-submit@debbugs.gnu.org id=B44492.161583362722404 (code B ref 44492); Mon, 15 Mar 2021 18:41:05 +0000 Received: (at 44492) by debbugs.gnu.org; 15 Mar 2021 18:40:27 +0000 Received: from localhost ([127.0.0.1]:37135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLs8h-0005pB-7f for submit@debbugs.gnu.org; Mon, 15 Mar 2021 14:40:27 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:13239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLs8T-0005nj-6r for 44492@debbugs.gnu.org; Mon, 15 Mar 2021 14:40:13 -0400 Received: from localhost.localdomain (217-149-164-20.nat.highway.telekom.at [217.149.164.20]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DzlbG71JTz1LWpg for <44492@debbugs.gnu.org>; Mon, 15 Mar 2021 19:40:10 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4DzlbG71JTz1LWpg DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1615833611; bh=ArI2MmNMf8riwjg0wZZVWBkcw19tlblfbEC8b6VD6rI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mUBBqaUTGcrFMkheqvx2PH14/q2G4tUg0zoyOH5bYukWffxOV1+ziuw0lWT4ZE6MG IOmazI+Wci5U/HU6BYXo2E8DMMQH2lRWXbty0Z+7iBibFMUQSksvHu49nFnE7b+Yj3 ZlyMuPBYSs8NMp1/XmDl2yiZnzIA8w8TXam+d1xw= From: Leo Prikler Date: Mon, 15 Mar 2021 18:58:29 +0100 Message-Id: <20210315175838.1931-42-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315175838.1931-1-leo.prikler@student.tugraz.at> References: <20210315175838.1931-1-leo.prikler@student.tugraz.at> MIME-Version: 1.0 X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 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/crates-gtk.scm (rust-secret-service-1): New variable. --- gnu/packages/crates-gtk.scm | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm index b292463108..f03cc8c669 100644 --- a/gnu/packages/crates-gtk.scm +++ b/gnu/packages/crates-gtk.scm @@ -2109,3 +2109,48 @@ renders username initials.") ("rust-tempfile" ,rust-tempfile-3)))) (inputs `(("gtk+" ,gtk+))))) + +(define-public rust-secret-service-1 + (package + (name "rust-secret-service") + (version "1.1.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "secret-service" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "12hxz35i7sw5xsdldz1c6776fmz98z4dwh5779jis98w61020xbd")))) + (build-system cargo-build-system) + (arguments + `(#:tests? #f ; XXX: see rust-dbus + #:cargo-inputs + (("rust-aes" ,rust-aes-0.6) + ("rust-block-modes" ,rust-block-modes-0.7) + ("rust-dbus" ,rust-dbus-0.2) + ("rust-hkdf" ,rust-hkdf-0.10) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-num" ,rust-num-0.3) + ("rust-rand" ,rust-rand-0.7) + ("rust-sha2" ,rust-sha2-0.9)) + #:phases + (modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key inputs #:allow-other-keys) + ;; Tests require a running X server. + (system "Xvfb :1 &") + (setenv "DISPLAY" ":1") + ;; For the missing /etc/machine-id. + (setenv "DBUS_FATAL_WARNINGS" "0") + #t))))) + (native-inputs + `(("xorg-server" ,xorg-server-for-tests))) + (inputs + `(("dbus" ,dbus))) + (home-page "https://github.com/hwchen/secret-service-rs.git") + (synopsis "Secret Service interface") + (description "This package provides a Rust library to interface with +the Secret Service API") + (license (list license:expat license:asl2.0))))