From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UB/BFdQSs2IzYAAAbAwnHQ (envelope-from ) for ; Wed, 22 Jun 2022 15:02:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sCG+FdQSs2IIkAAA9RJhRA (envelope-from ) for ; Wed, 22 Jun 2022 15:02:12 +0200 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 4189D13B13 for ; Wed, 22 Jun 2022 15:02:12 +0200 (CEST) Received: from localhost ([::1]:38122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o3zzn-0005SZ-C2 for larch@yhetil.org; Wed, 22 Jun 2022 09:02:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37930) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o3zyi-0005MH-Qj for guix-patches@gnu.org; Wed, 22 Jun 2022 09:01:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:40446) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o3zyi-0007QW-F2 for guix-patches@gnu.org; Wed, 22 Jun 2022 09:01:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o3zyi-0008Vd-Ew for guix-patches@gnu.org; Wed, 22 Jun 2022 09:01:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54882] [PATCH v3 6/6] gnu: Add hut. Resent-From: Dhruvin Gandhi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 Jun 2022 13:01:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54882 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54882@debbugs.gnu.org Cc: Dhruvin Gandhi Received: via spool by 54882-submit@debbugs.gnu.org id=B54882.165590281632598 (code B ref 54882); Wed, 22 Jun 2022 13:01:04 +0000 Received: (at 54882) by debbugs.gnu.org; 22 Jun 2022 13:00:16 +0000 Received: from localhost ([127.0.0.1]:34336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3zxv-0008Tb-RY for submit@debbugs.gnu.org; Wed, 22 Jun 2022 09:00:16 -0400 Received: from out2.migadu.com ([188.165.223.204]:64716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o3zxm-0008Qg-4B for 54882@debbugs.gnu.org; Wed, 22 Jun 2022 09:00:06 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dhruvin.dev; s=key1; t=1655902804; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=0x4FlMTHEki+/D36Hnm5VoptOWgMkXWPDKcEUqi6UDs=; b=WSIOsUmpyq2r5JQrqLUIpw7xJz+A1g665+3/xSGOZiOiWW0KtlnSjFahKYQhQOkJtJ1aEX 9T/TtIW8WbgHA3Z0CA+w9+LaVCeBaY6K0Nzc8sR7583EdI3IbzDZVwjQbHef6t7mT818H9 W1zzTCKcn0PX07ppcigts8UyZ88yyk8= Date: Wed, 22 Jun 2022 18:29:15 +0530 Message-Id: <20220622125915.2891-7-contact@dhruvin.dev> In-Reply-To: <20220622125915.2891-1-contact@dhruvin.dev> References: <20220622125915.2891-1-contact@dhruvin.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: Dhruvin Gandhi X-ACL-Warn: , Dhruvin Gandhi via Guix-patches From: Dhruvin Gandhi via Guix-patches via Authentication-Results: aspmx1.migadu.com; none X-Migadu-Scanner: scn0.migadu.com X-TUID: WF0Dt+XtUT2o * gnu/packages/version-control.scm (hut): New variable. --- gnu/packages/version-control.scm | 61 ++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index eefb4a01ec..2bb14b8813 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -45,6 +45,7 @@ ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2022 Jai Vetrivelan ;;; Copyright © 2022 Maxime Devos +;;; Copyright © 2022 Dhruvin Gandhi ;;; ;;; This file is part of GNU Guix. ;;; @@ -104,6 +105,7 @@ (define-module (gnu packages version-control) #:use-module (gnu packages image) #:use-module (gnu packages linux) #:use-module (gnu packages mail) + #:use-module (gnu packages man) #:use-module (gnu packages maths) #:use-module (gnu packages nano) #:use-module (gnu packages ncurses) @@ -3407,3 +3409,62 @@ (define-public gitlint "Gitlint is a Git commit message linter written in Python: it checks your commit messages for style.") (license license:expat))) + +(define-public hut + (package + (name "hut") + (version "0.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~emersion/hut") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15ag8fibnahcfgd0w2j4k813z10ymi39rx8d3c8b9955zc62p1fr")))) + (build-system go-build-system) + (arguments + (list + #:import-path "git.sr.ht/~emersion/hut" + #:phases + #~(modify-phases + %standard-phases + (replace 'build + (lambda* (#:key import-path #:allow-other-keys) + (with-directory-excursion + (string-append "src/" import-path) + ;; From guix/build/go-build-system.scm + (setenv "CGO_LDFLAGS" "-s -w") + (invoke "make" "all" "GOFLAGS=-v -x")))) + (replace 'install + (lambda* (#:key import-path outputs #:allow-other-keys) + (with-directory-excursion (string-append "src/" import-path) + (invoke "make" "install" + (string-append "PREFIX=" (assoc-ref outputs "out"))))))))) + (native-inputs + (list scdoc)) + (inputs + (list go-golang-org-x-term + go-golang-org-x-oauth2 + go-github-com-spf13-cobra + go-github-com-juju-ansiterm + go-git-sr-ht--emersion-gqlclient + go-git-sr-ht--emersion-go-scfg)) + (home-page "https://git.sr.ht/~emersion/hut") + (synopsis "CLI tool for sr.ht") + (description "@command{hut} is a cli tool for +@uref{https://sr.ht/~sircmpwn/sourcehut/, sr.ht}. It helps you interact with +sr.ht's public services: +@itemize +@item builds: submit, and manage build jobs +@item git: create, and manage git repositories, and artifacts +@item hg: list mercurial repositories +@item lists: manage mailing lists, and patches +@item meta: manage pgp, and ssh keys +@item pages: publish, and manage hosted websites +@item paste: create, and manage pastes +@item todo: create, and manage trackers, and tickets +@item graphql: interact with GraphQL APIs directly +@end itemize\n") + (license license:agpl3))) -- 2.36.1