From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id Ib5ILwYSvF/PEwAA0tVLHw (envelope-from ) for ; Mon, 23 Nov 2020 19:48:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WGKEKgYSvF9MPgAA1q6Kng (envelope-from ) for ; Mon, 23 Nov 2020 19:48:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6C4CD9404CC for ; Mon, 23 Nov 2020 19:48:22 +0000 (UTC) Received: from localhost ([::1]:49174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khHoz-0005X5-Ah for larch@yhetil.org; Mon, 23 Nov 2020 14:48:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khHlm-0003QU-MZ for guix-patches@gnu.org; Mon, 23 Nov 2020 14:45:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khHlm-0006Tx-Dr for guix-patches@gnu.org; Mon, 23 Nov 2020 14:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khHlm-0004GB-Bm for guix-patches@gnu.org; Mon, 23 Nov 2020 14:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44810] [PATCH v3] gnu: Add git-open. References: <20201123011708.3436-1-eu@euandre.org> In-Reply-To: <20201123011708.3436-1-eu@euandre.org> Resent-From: EuAndreh Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 Nov 2020 19:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44810 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44810@debbugs.gnu.org Cc: EuAndreh Received: via spool by 44810-submit@debbugs.gnu.org id=B44810.160616069816351 (code B ref 44810); Mon, 23 Nov 2020 19:45:02 +0000 Received: (at 44810) by debbugs.gnu.org; 23 Nov 2020 19:44:58 +0000 Received: from localhost ([127.0.0.1]:51248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khHlb-0004FY-SG for submit@debbugs.gnu.org; Mon, 23 Nov 2020 14:44:58 -0500 Received: from box.euandre.org ([46.101.160.115]:44053) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khHla-0004FL-36 for 44810@debbugs.gnu.org; Mon, 23 Nov 2020 14:44:51 -0500 Received: from authenticated-user (box.euandre.org [46.101.160.115]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by box.euandre.org (Postfix) with ESMTPSA id 8D8D1FC3CF; Mon, 23 Nov 2020 16:44:42 -0300 (-03) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=euandre.org; s=mail; t=1606160683; bh=8doWzjbyM2UKlKgGiwmDjXW2XcKxxuboZ62p2MGPX1M=; h=From:To:Cc:Subject:Date:From; b=qt3PQsKQMVNrcqEj26SW9Og8RGL8cEf2D849cRd3kEO5XszWurK3gzQ6jflhISZKR d4vHOvi8OoXlVgHyXNraY56SQZF9IoKQwk1oSO3AOmn055lKs9ftBlf38SktYL6ys5 XatNYP0I4BZW3r2YevJD7TtD8QwyxAkxbGKjviWm+Ir1KkguJ5d6fAcCThWXMfwOcY VAXqXetvoNhD52XnWtP+E4KuWd7aoyty3zlnCa7HTISOTJJ/Q1my3j/KBEKYFISDQK C8HyHuNdY+6z0aeKyaBW1f99fHaZmHnTh+pR+BIDKMand70wWxYAJ2q87nhe92A5Cc pqZmND7zR0dyA== Date: Mon, 23 Nov 2020 16:44:39 -0300 Message-Id: <20201123194439.23444-1-eu@euandre.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: EuAndreh , EuAndreh via Guix-patches From: EuAndreh via Guix-patches via X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=euandre.org header.s=mail header.b=qt3PQsKQ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: 4t8/a3mvdP59 * gnu/packages/version-control.scm (git-open): New variable. --- Now also add missing xdg-utils propagated input. gnu/packages/version-control.scm | 37 +++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 1842528ff6..622e046e03 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -14,7 +14,7 @@ ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2017 Vasile Dumitrascu ;;; Copyright © 2017 Clément Lassieur -;;; Copyright © 2017 André +;;; Copyright © 2017, 2020 EuAndreh ;;; Copyright © 2017, 2018, 2020 Marius Bakke ;;; Copyright © 2017 Stefan Reichör ;;; Copyright © 2017, 2020 Oleg Pykhalov @@ -74,6 +74,7 @@ #:use-module (gnu packages ed) #:use-module (gnu packages file) #:use-module (gnu packages flex) + #:use-module (gnu packages freedesktop) #:use-module (gnu packages gettext) #:use-module (gnu packages gl) #:use-module (gnu packages golang) @@ -2718,6 +2719,40 @@ videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server.") (license license:expat))) +(define-public git-open + (package + (name "git-open") + (version "2.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/paulirish/git-open") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "11n46bngvca5wbdbfcxzjhjbfdbad7sgf7h9gf956cb1q8swsdm0")))) + (build-system trivial-build-system) + (propagated-inputs + `(("xdg-utils" ,xdg-utils))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let ((source (assoc-ref %build-inputs "source")) + (out (assoc-ref %outputs "out"))) + (mkdir-p (string-append out "/bin")) + (copy-file (string-append source "/git-open") + (string-append out "/bin/git-open")) + #t)))) + (home-page "https://github.com/paulirish/git-open") + (synopsis "Shortcut for opening the repository's homepage on the browser") + (description + "@code{git open} opens the repository's website from the command-line, +guessing the URL pattern from the @code{origin} remote.") + (license license:expat))) + (define-public tla (package (name "gnu-arch") -- 2.29.2