From patchwork Tue Jan 7 20:00:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Maja_K=C4=85dzio=C5=82ka?= X-Patchwork-Id: 19685 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 0A65D17A28; Tue, 7 Jan 2020 20:02:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RCVD_NUMERIC_HELO, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 8D08717A24 for ; Tue, 7 Jan 2020 20:02:10 +0000 (GMT) Received: from localhost ([::1]:55562 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iov3J-0001ev-Uq for patchwork@mira.cbaines.net; Tue, 07 Jan 2020 15:02:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59309) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iov3D-0001cl-MV for guix-patches@gnu.org; Tue, 07 Jan 2020 15:02:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iov3C-0001vW-15 for guix-patches@gnu.org; Tue, 07 Jan 2020 15:02:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43438) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iov3B-0001vG-T6 for guix-patches@gnu.org; Tue, 07 Jan 2020 15:02:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iov3B-00048S-Oi for guix-patches@gnu.org; Tue, 07 Jan 2020 15:02:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#39021] [PATCH] Add Keybase Resent-From: Jakub =?utf-8?b?S8SFZHppb8WCa2E=?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 07 Jan 2020 20:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39021 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 39021@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157842726315822 (code B ref -1); Tue, 07 Jan 2020 20:02:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jan 2020 20:01:03 +0000 Received: from localhost ([127.0.0.1]:49411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iov28-00046d-G7 for submit@debbugs.gnu.org; Tue, 07 Jan 2020 15:01:03 -0500 Received: from lists.gnu.org ([209.51.188.17]:56712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iov25-00046V-To for submit@debbugs.gnu.org; Tue, 07 Jan 2020 15:00:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58781) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iov23-0001Hr-Uf for guix-patches@gnu.org; Tue, 07 Jan 2020 15:00:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iov22-0000mD-1Q for guix-patches@gnu.org; Tue, 07 Jan 2020 15:00:51 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:59878) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iov21-0000dT-L9 for guix-patches@gnu.org; Tue, 07 Jan 2020 15:00:49 -0500 Received: (qmail 15452 invoked by uid 1009); 7 Jan 2020 21:00:41 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25686. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.059646 secs); 07 Jan 2020 20:00:41 -0000 Received: from unknown (HELO zdrowyportier.kadziolka.net) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 7 Jan 2020 21:00:41 +0100 Date: Tue, 7 Jan 2020 21:00:39 +0100 From: Jakub =?utf-8?b?S8SFZHppb8WCa2E=?= Message-ID: <20200107200039.jga75muq7excgpqu@zdrowyportier.kadziolka.net> MIME-Version: 1.0 Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 Hi Guix, please find attached a set of patches that adds the non-GUI parts of Keybase (the GUI is an Electron application - as far as I am aware, there are no similar packages in Guix, so packaging the GUI requires a significant amount of further work). Unresolved question: in other distributions, the package provides user units for systemd. Should the Guix package provide Shepherd services to be ran as the user? If so, are there any other examples I could look at and draw inspiration from? Also, I haven't been able to find any documentation on how to set up user shepherd, apart from a passing mention of that being possible in the documentation. I would appreciate any pointers on the topic. Regards, Jakub Kądziołka From 3de233a2d8e6bdb4723844337b69b6612616c9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Tue, 7 Jan 2020 20:29:21 +0100 Subject: [PATCH 2/2] gnu: Add keybase. * gnu/packages/crypto.scm (keybase-component): New function. (keybase, git-remote-keybase, kbfs): New variables. --- gnu/packages/crypto.scm | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm index dd49c12e5b..c78515ae68 100644 --- a/gnu/packages/crypto.scm +++ b/gnu/packages/crypto.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2018 Tim Gesthuizen ;;; Copyright © 2019 Pierre Neidhardt ;;; Copyright © 2019 Tanguy Le Carrour +;;; Copyright © 2020 Jakub Kądziołka ;;; ;;; This file is part of GNU Guix. ;;; @@ -69,6 +70,7 @@ #:use-module (guix git-download) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system go) #:use-module (guix build-system perl) #:use-module (guix build utils) #:use-module (srfi srfi-1) @@ -1040,3 +1042,50 @@ minisign uses a slightly different format to store secret keys. Minisign signatures include trusted comments in addition to untrusted comments. Trusted comments are signed, thus verified, before being displayed.") (license license:isc))) + +(define* (keybase-component #:key name repo-path synopsis description) + (package + (name name) + (version "5.1.1") + (source (origin + (method url-fetch) + (uri + (string-append "https://github.com/keybase/client/releases/download/v" + version "/keybase-v" version ".tar.xz")) + (sha256 + (base32 + "1i6waaprdr89k3lrg36hn11f5z8j0n2iv6gpyrynbh2h128cfpwy")))) + (build-system go-build-system) + (arguments + `(#:import-path ,(string-append "github.com/keybase/client/go/" repo-path) + #:unpack-path "github.com/keybase/client" + #:build-flags '("-tags" "production") + #:install-source? #f)) + (home-page "https://keybase.io") + (synopsis synopsis) + (description description) + (license license:bsd-3))) + +(define-public keybase + (keybase-component + #:name "keybase" + #:repo-path "keybase" + #:synopsis "Command-line client for Keybase" + #:description "Keybase is a key directory that maps social media identities +to encryption keys in a publically auditable manner. End-to-end encrypted chat, +cloud storage and git hosting is also provided.")) + +(define-public git-remote-keybase + (keybase-component + #:name "git-remote-keybase" + #:repo-path "kbfs/kbfsgit/git-remote-keybase" + #:synopsis "Git remote helper for Keybase encrypted repositories" + #:description "keybase-kbfsgit provides the git remote helper that handles +@code{keybase://} URIs.")) + +(define-public kbfs + (keybase-component + #:name "kbfs" + #:repo-path "kbfs/kbfsfuse" + #:synopsis "FUSE handler for the Keybase filesystem" + #:description "Handles mounting /keybase")) -- 2.24.1