From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KOboCPaRn2B1RgEAgWs5BA (envelope-from ) for ; Sat, 15 May 2021 11:18:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4Bt9BPaRn2DWDAAAbx9fmQ (envelope-from ) for ; Sat, 15 May 2021 09:18:46 +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 5ABF221F5B for ; Sat, 15 May 2021 11:18:45 +0200 (CEST) Received: from localhost ([::1]:46904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhqRY-00019F-I0 for larch@yhetil.org; Sat, 15 May 2021 05:18:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhqQs-00014v-L3 for guix-patches@gnu.org; Sat, 15 May 2021 05:18:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36012) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhqQs-0002lS-EI for guix-patches@gnu.org; Sat, 15 May 2021 05:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhqQs-0006AP-AV for guix-patches@gnu.org; Sat, 15 May 2021 05:18:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48232] [PATCH v2 1/2] gnu: Add hg-commitsigs. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 15 May 2021 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48232 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48232@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 48232-submit@debbugs.gnu.org id=B48232.162107024323634 (code B ref 48232); Sat, 15 May 2021 09:18:02 +0000 Received: (at 48232) by debbugs.gnu.org; 15 May 2021 09:17:23 +0000 Received: from localhost ([127.0.0.1]:47555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqQE-000695-OQ for submit@debbugs.gnu.org; Sat, 15 May 2021 05:17:23 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:59842 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqQ9-00068Q-9W for 48232@debbugs.gnu.org; Sat, 15 May 2021 05:17:17 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1621070231; bh=mJraFbxe1UGteJxmO/OyUbstNTgWE1GCWdgXGw6WGBM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=U5a0Uy9eTBFBBygUlxsaRLAVthfDTN9I3nRAob4bm8vZNj+qm0m4dq5ivhgjJpoRI HzkyuLQMB5aL1YMwn0a/kUcH4Xe7EkJmq42vvK6uAQnbMNbK62Xar6ydfX4rKZK2E7 gqNyBp1li3+LUD17Wlr36ixs8xEFJSv8CqCXKP5g= In-Reply-To: References: <87k0oecj3a.fsf@yoctocell.xyz> Message-Id: Date: Sat, 15 May 2021 11:17:11 +0200 MIME-Version: 1.0 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621070325; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=BW8Hs0Df1hTD10LZMU0I0RbeLnK+AkonGkOehXBQZDg=; b=FNTVarOzqKd8ZljfRXHTD48lZeyIaAUoZS+/W141mzaFXRccMvvlvrrHVlW5jOOewrP9HN EKro1l2d4FAhUQynafysU5PHSM8+GQyNqhqiPAI5fVK9CDTTo++ycxP94Sw36uMLtUaaRl c2mBz63vEwSSLif6DMsmI+SgeiyvRy1yHtD4joTPCWEAQtc7c6tVImsdzuHThQ2F2wxUD9 XTglAH0XDMBLBJoBq3LIQFngD01RUug4umsMF61iGpC/91MDBtjVqHSjIeRpvBK2UJcIia 22LS0v66x+o7SRX950bOMlGJpPAohMkX1B4xiq8CCBw4R4F4yyCwmDvl7iisBA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621070325; a=rsa-sha256; cv=none; b=apwTCXLBoNihsKF4suC0c6uttEzNfpYTZL00IKav8kYQZqXKspEaHMWBd1gqL3rpwgNJzb OnLSeFxPitajtquaOxupR7XSZj5/habXXYqKctycFKeiARFq0L9DR/h9OgCqubT11xYHgt 0WVueOeAJ1T7fkdpo9d/7o1WzXw56UXVVmORZnPoX5WmeJN3j7Tzc2BxCvt/9+meswJEnK 8U0m2ZiIr8LpcSoWkfJM4K7QErWSplIqlq1YCC9ANfoBUhnnUBA+2amNxJaF4OvNTe8oqH hdULrO53kIO3ivRGJo4eBE5meXfGrIthITyvk/JhndnfFxsMNcCuO1B3klcpCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=U5a0Uy9e; 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-Migadu-Spam-Score: -0.35 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=yoctocell.xyz header.s=mail header.b=U5a0Uy9e; dmarc=fail reason="SPF not aligned (relaxed)" header.from=yoctocell.xyz (policy=none); 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-Migadu-Queue-Id: 5ABF221F5B X-Spam-Score: -0.35 X-Migadu-Scanner: scn0.migadu.com X-TUID: WPf7UCCllZ/T * gnu/packages/version-control.scm (hg-commitsigs): New variable. --- gnu/packages/version-control.scm | 63 ++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 5438f6349c..1e55c73c0c 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -62,6 +62,7 @@ #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix hg-download) + #:use-module (guix build python-build-system) #:use-module (guix build-system cmake) #:use-module (guix build-system copy) #:use-module (guix build-system gnu) @@ -88,6 +89,7 @@ #:use-module (gnu packages gl) #:use-module (gnu packages glib) #:use-module (gnu packages gnome) + #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) #:use-module (gnu packages groff) #:use-module (gnu packages guile) @@ -1716,6 +1718,67 @@ interface.") history. It implements the changeset evolution concept for Mercurial.") (license license:gpl2))) +(define-public hg-commitsigs + ;; Latest tag is 11 years old. + (let ((changeset "b53eb6862bff") + (revision "0")) + (package + (name "hg-commitsigs") + (version (git-version "0.1.0" revision changeset)) + (source (origin + (method hg-fetch) + (uri (hg-reference + (url "https://foss.heptapod.net/mercurial/commitsigs") + (changeset changeset))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "059gm66q06m6ayl4brsc517zkw3ahmz249b6xm1m32ac5y24wb9x")))) + (build-system copy-build-system) + (arguments + `(#:imported-modules ((guix build python-build-system) + ,@%copy-build-system-modules) + #:modules ((srfi srfi-1) + (guix build python-build-system) + ;; Don't use `%copy-build-system-modules' because + ;; `standard-phases' from (guix build gnu-build-system) + ;; shadows the one from (guix build copy-build-system), + ;; which is the one we actually want. + (guix build copy-build-system) + ((guix build gnu-build-system) #:prefix gnu) + (guix build utils) + (guix build gremlin) + (ice-9 ftw) + (guix elf)) + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((gpg (string-append (assoc-ref inputs "gnupg") + "/bin/gpg")) + (openssl (string-append (assoc-ref inputs "openssl") + "/bin/openssl"))) + (substitute* "commitsigs.py" + (("b'gpg',") (string-append "b'" gpg "',")) + (("b'openssl',") (string-append "b'" openssl "',"))))))) + #:install-plan + `(("commitsigs.py" ,(string-append "lib/python" + (python-version + (assoc-ref %build-inputs "python")) + "/site-packages/hgext3rd/commitsigs.py"))))) + (native-inputs + `(("python" ,python))) + (inputs + `(("gnupg" ,gnupg) + ("openssl" ,openssl))) + (home-page "https://foss.heptapod.net/mercurial/commitsigs") + (synopsis "Automatic signing of changeset hashes") + (description "This package provides a Mercurial extension for signing +the changeset hash of commits. The signure is embedded directly in the +changeset itself; there won't be any extra commits. Either GnuPG or OpenSSL +can be used for signing.") + (license license:gpl3+)))) + (define-public neon (package (name "neon") -- 2.31.1