From patchwork Thu Mar 11 22:07:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Prikler X-Patchwork-Id: 27645 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 862C327BC52; Thu, 11 Mar 2021 22:12:35 +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 4342E27BC51 for ; Thu, 11 Mar 2021 22:12:34 +0000 (GMT) Received: from localhost ([::1]:45644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKTXl-0000Qo-An for patchwork@mira.cbaines.net; Thu, 11 Mar 2021 17:12:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33020) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKTWI-0006wK-NY for guix-patches@gnu.org; Thu, 11 Mar 2021 17:11:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKTWI-0000Sc-Eh for guix-patches@gnu.org; Thu, 11 Mar 2021 17:11:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKTWI-0005v9-AF for guix-patches@gnu.org; Thu, 11 Mar 2021 17:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44492] [PATCH v4 42/47] gnu: Add rust-secret-service-1. Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Mar 2021 22:11:02 +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.161550062222637 (code B ref 44492); Thu, 11 Mar 2021 22:11:02 +0000 Received: (at 44492) by debbugs.gnu.org; 11 Mar 2021 22:10:22 +0000 Received: from localhost ([127.0.0.1]:55246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKTVd-0005st-Dj for submit@debbugs.gnu.org; Thu, 11 Mar 2021 17:10:21 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:19201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKTVa-0005sO-G8 for 44492@debbugs.gnu.org; Thu, 11 Mar 2021 17:10:18 -0500 Received: from localhost.localdomain (217-149-164-20.nat.highway.telekom.at [217.149.164.20]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DxNRW60f8z3xNt for <44492@debbugs.gnu.org>; Thu, 11 Mar 2021 23:10:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1615500615; bh=GKrEmYn9suSO39VEKmWlo4oEB5inkdk9iBG4xHorIyo=; h=From:To:Subject:Date:In-Reply-To:References; b=dGrl4xEd/2qzDBVWZd0QVZQ8RTtsBgD0y3INHdbYF2bSoqCJ8zw4gBKPhO6WK7E2J MOWY4bHYp8EDl+8RKMtftpDz+zqKH/HK/a+CBo48IUNmI7VtwUzQONvJAEGdtSepOa 77ALb6Jer63RbaF+90vxFEPkqPmy2cS273g/xikg= From: Leo Prikler Date: Thu, 11 Mar 2021 23:07:51 +0100 Message-Id: <20210311220756.23132-42-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210311220756.23132-1-leo.prikler@student.tugraz.at> References: <20210311220756.23132-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.117 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))))