From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uPOuIjM7tGKKCQEAbAwnHQ (envelope-from ) for ; Thu, 23 Jun 2022 12:06:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OHdlIjM7tGLIVAAAauVa8A (envelope-from ) for ; Thu, 23 Jun 2022 12:06:43 +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 7210A36091 for ; Thu, 23 Jun 2022 12:06:43 +0200 (CEST) Received: from localhost ([::1]:44952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4JjW-000816-JN for larch@yhetil.org; Thu, 23 Jun 2022 06:06:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4JIm-0001C8-Nf for guix-patches@gnu.org; Thu, 23 Jun 2022 05:39:08 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43553) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4JIm-0006xP-FY for guix-patches@gnu.org; Thu, 23 Jun 2022 05:39:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4JIm-0000lr-Dj for guix-patches@gnu.org; Thu, 23 Jun 2022 05:39:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54882] [PATCH v4 6/6] gnu: Add hut. Resent-From: Dhruvin Gandhi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 23 Jun 2022 09:39: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.16559771382916 (code B ref 54882); Thu, 23 Jun 2022 09:39:04 +0000 Received: (at 54882) by debbugs.gnu.org; 23 Jun 2022 09:38:58 +0000 Received: from localhost ([127.0.0.1]:37445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4JIf-0000kt-SG for submit@debbugs.gnu.org; Thu, 23 Jun 2022 05:38:58 -0400 Received: from out1.migadu.com ([91.121.223.63]:64653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4JIW-0000kE-AA for 54882@debbugs.gnu.org; Thu, 23 Jun 2022 05:38:48 -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=1655977127; 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=ztxi1TltLt4DnABrFfem3zrK4h8ohBRmElREf8IbY+A=; b=oMetJTkvepqqnZFDLkC65iEw+k+V7qxIhW7kJXrCpPT+ZEfVwSsWIbaVVuPn0UarP9mm3s /t13gGX44emCHvprdrF2+JniRv3kU28DifTDzq1GgOOZLnhJr5rpQS8YBKj/l/ApkMvQMu oLYzlOCbaGbaRZAHF17TL5zfl9VNWwc= Date: Thu, 23 Jun 2022 15:08:08 +0530 Message-Id: <20220623093808.21573-6-contact@dhruvin.dev> In-Reply-To: <20220623093808.21573-1-contact@dhruvin.dev> References: <20220623093808.21573-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: scn1.migadu.com X-TUID: tXthXOym1qoc * 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..860c281ab2 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") + (license license:agpl3))) -- 2.36.1