From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uLdOCrBMgGFihAEAgWs5BA (envelope-from ) for ; Mon, 01 Nov 2021 21:23:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0HwHBrBMgGFRIQAAB5/wlQ (envelope-from ) for ; Mon, 01 Nov 2021 20:23:12 +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 851B228EDB for ; Mon, 1 Nov 2021 21:23:11 +0100 (CET) Received: from localhost ([::1]:55172 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhdpm-0006il-Kk for larch@yhetil.org; Mon, 01 Nov 2021 16:23:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhdpe-0006gH-Vw for guix-patches@gnu.org; Mon, 01 Nov 2021 16:23:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52924) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mhdpe-000165-N6 for guix-patches@gnu.org; Mon, 01 Nov 2021 16:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mhdpe-0007dq-JW for guix-patches@gnu.org; Mon, 01 Nov 2021 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49581] [PATCH v4] gnu: Add git-issues. References: In-Reply-To: Resent-From: phodina Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 01 Nov 2021 20:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49581 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Sarah Morgensen Cc: Tobias Geerinckx-Rice , 49581@debbugs.gnu.org Received: via spool by 49581-submit@debbugs.gnu.org id=B49581.163579813029283 (code B ref 49581); Mon, 01 Nov 2021 20:23:02 +0000 Received: (at 49581) by debbugs.gnu.org; 1 Nov 2021 20:22:10 +0000 Received: from localhost ([127.0.0.1]:36234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhdog-0007c0-SA for submit@debbugs.gnu.org; Mon, 01 Nov 2021 16:22:09 -0400 Received: from mail-4316.protonmail.ch ([185.70.43.16]:11251) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mhdoc-0007bP-PC for 49581@debbugs.gnu.org; Mon, 01 Nov 2021 16:22:01 -0400 Date: Mon, 01 Nov 2021 20:21:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1635798108; bh=MCTsGRI1sYY6qZIciQpMkDmjabCW1texkQlu8IJ5Jn4=; h=Date:To:From:Cc:Reply-To:Subject:From; b=KV4uwvBp+IzVytJR0k7DWkCVN9F1QO+MiAnh+aUymJNx1RL0ElB/NkQJCBr+QhQLk jyYXAYoHYinSxhkijvC4pa6zZzAe8wW398ftjsQdA1vBFJbyuDy4XjIyVgEs6Zn/i2 Ry9xTQkwOQNU1ZLHqqXr0SxCJmiHWwtqTABi5hsc= Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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" Reply-to: phodina X-ACL-Warn: , phodina via Guix-patches From: phodina via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635798191; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=MCTsGRI1sYY6qZIciQpMkDmjabCW1texkQlu8IJ5Jn4=; b=P337qi32KOBBgRfgEY13x0jR2UE+FLmHMDf3rrs/wpPYu5ht+ZDv0zupzGBVcwHQab2nU/ /WIRA4FOquo9/s+mrIjHtp6/ZAb+ljrP2AvMf/CfVKh3kkxDyt0E+AUc0qi3yqNvhLw2eJ eUXvr0yPorjERxvdjc1G6bhhBpdVsOCUI422M9rhBWmG+X2odIB016OwhVQJ10+fzF77vJ f/lhokkJ6Jjtroqq2KATW5ZuUnlZW81dIqlVu/4v7nHeBdPL0xQPU+BKrroy6BxYcDrGaG DinIe5MIjo2tg4EJWc2n3gfsTI8QEJZLk53zPgpWoVmIjiLrqNA64my70nfIqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635798191; a=rsa-sha256; cv=none; b=OE7NRE5XykX6zQSsoWWWEzQldsxE7hidECmVY4ax8AuNlKFRoJO9heawJiITothQI6/zK6 EpVR7ShG3nvlhkrn+PXW8QCs96c8KrbJWfpbYdW71xMQnMLAgYVZKWZGJeGa+QzXTNquSJ WphA1bdH95TyrZ5sJwKiC7/TJh32RDsYWZdCWfqlQeBWPcmp4Um1Il3KTzXsA8lORpdGkK zlFazdVa1jqWetGdZCMuQOmrhPrBlMSbxBJ1KxuxTpABosFYjdS1H5DPv1rPrnMWwvMmb2 lgHwMQqvXSlKRLszPpocrU1fTI59TXY3YXsHVQgCLdrCk/Y/l9KAUyLpK9FSng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=KV4uwvBp; 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-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=protonmail.com header.s=protonmail header.b=KV4uwvBp; 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-Migadu-Queue-Id: 851B228EDB X-Spam-Score: -2.92 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4QjsKVU27oDB Hi, Thanks Sarah for the feedback and tips on how to wrap the programs in the s= hell script. In fact the patch is almost done, but I couldn't figure out the correct pro= cedure for the map on line 1324. I get that the list of strings should be m= apped into paths to the binaries, but after struggling I gave up and found = book about Scheme to learn first. So here is the patch with the minor issue. Hope this utility helps. --8<---------------cut here---------------start------------->8--- Subject: [PATCH v4] gnu: Add git-issue. * gnu/packages/version-control.scm (git-issue): New variable. diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-contro= l.scm index 064212db9f..c685f2f4b5 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -41,6 +41,7 @@ ;;; Copyright =C2=A9 2021 Fran=C3=A7ois J. ;;; Copyright =C2=A9 2021 Julien Lepiller ;;; Copyright =C2=A9 2021 jgart +;;; Copyright =C2=A9 2021 Petr Hodina ;;; ;;; This file is part of GNU Guix. ;;; @@ -96,6 +97,7 @@ (define-module (gnu packages version-control) #:use-module (gnu packages groff) #:use-module (gnu packages guile) #:use-module (gnu packages guile-xyz) + #:use-module (gnu packages haskell-apps) #:use-module (gnu packages image) #:use-module (gnu packages linux) #:use-module (gnu packages mail) @@ -1277,6 +1279,75 @@ (define-public git-flow lot easier.") (license license:bsd-2))) +(define-public git-issue + (let ((commit "67aacad35888b4c51e2d7be35c86fef137874f12") + (revision "1")) + (package + (name "git-issue") + (version (git-version "0.0" revision commit)) + (source (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/dspinellis/git-issue") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1z6dpwbikmiq5acpbji4kvmxqc2jw995rfk5703k5mvp5ps9a29q"))= )) + (build-system gnu-build-system) + (arguments + '(#:make-flags (list (string-append "PREFIX=3D" (assoc-ref %outputs= "out"))) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (add-before 'check 'setup-env + (lambda _ + (setenv "HOME" (getenv "TMPDIR")) + (invoke "git" "config" "--global" "user.email" "test") + (invoke "git" "config" "--global" "user.name" "Test") + (substitute* "test.sh" + (("! git diff") "git diff") + (("#!/bin/sh") (string-append "#!" (which "bash"))) + (("gi=3D.*") (string-append "gi=3D" (getcwd) "/git-issue.= sh\n"))) + (substitute* "Makefile" + (("shellcheck -x") "shellcheck --exclude=3DSC2001,SC3043,= SC3003 -x")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test")))) + (add-before 'install 'patch-paths + (lambda* (#:key build-inputs #:allow-other-keys) + (let ((out (assoc-ref %outputs "out")) + (paths (map + (lambda (input) + (string-append (assoc-ref build-inputs inpu= t) "/bin")) + '("coreutils" "curl" "findutils" + "git-minimal" "grep" "jq" "sed")))) + (for-each + (lambda (program) + (wrap-program + (string-append out "/" program) + `("PATH" prefix ,paths))) + '("bin/git-issue" "lib/git-issue/import-export.sh"))))))= )) + (native-inputs `(("shellcheck" ,shellcheck))) + (inputs `(("bash-minimal" ,bash-minimal) + ("git" ,git) + ("coreutils" ,coreutils) + ("grep" ,grep) + ("curl" ,curl) + ("findutils" ,findutils) + ("sed" ,sed) + ("util-linux" ,util-linux) + ("jq" ,jq))) + (synopsis "Git-based decentralized issue management") + (description "Git-issue provide a minimalist decentralized issue +management system based on Git, offering (optional) bidirectional +integration with GitHub and GitLab issue management.") + (home-page "https://github.com/dspinellis/git-issue") + (license license:gpl3+)))) + (define-public stgit (package (name "stgit") -- 2.33.1