summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2026-02-06 02:26:10 +0000
committerjgart <jgart@dismail.de>2026-02-06 14:25:53 -0600
commit57ab2f0ec62ab5f6be512ddecbeb992d0990b0ca (patch)
tree487bf0b2314f5d48ac2c8da8e162e021ef421ffd
parentf3c64aaa4d9903a63bae8c41bfa8a4e503c58871 (diff)
gnu: Add git-bug.
* gnu/packages/golang-apps.scm (git-bug): New variable. Signed-off-by: jgart <jgart@dismail.de>
-rw-r--r--gnu/packages/golang-apps.scm63
1 files changed, 63 insertions, 0 deletions
diff --git a/gnu/packages/golang-apps.scm b/gnu/packages/golang-apps.scm
index df8a91e0aeb..4b1b50efeee 100644
--- a/gnu/packages/golang-apps.scm
+++ b/gnu/packages/golang-apps.scm
@@ -4,6 +4,7 @@
4;;; Copyright © 2025 Tomas Volf <~@wolfsden.cz> 4;;; Copyright © 2025 Tomas Volf <~@wolfsden.cz>
5;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com> 5;;; Copyright © 2025 Sharlatan Hellseher <sharlatanus@gmail.com>
6;;; Copyright © 2025 jgart <jgart@dismail.de> 6;;; Copyright © 2025 jgart <jgart@dismail.de>
7;;; Copyright © 2026 Arun Isaac <arunisaac@systemreboot.net>
7;;; 8;;;
8;;; This file is part of GNU Guix. 9;;; This file is part of GNU Guix.
9;;; 10;;;
@@ -30,6 +31,8 @@
30 #:use-module (gnu packages golang) 31 #:use-module (gnu packages golang)
31 #:use-module (gnu packages golang-build) 32 #:use-module (gnu packages golang-build)
32 #:use-module (gnu packages golang-check) 33 #:use-module (gnu packages golang-check)
34 #:use-module (gnu packages golang-crypto)
35 #:use-module (gnu packages golang-vcs)
33 #:use-module (gnu packages golang-web) 36 #:use-module (gnu packages golang-web)
34 #:use-module (gnu packages golang-xyz)) 37 #:use-module (gnu packages golang-xyz))
35 38
@@ -422,3 +425,63 @@ editing and auto-completion. Some of its features include:
422 (description "mnc (my next cron) opens the user's crontab and echos the 425 (description "mnc (my next cron) opens the user's crontab and echos the
423time when the next cronjob will be ran.") 426time when the next cronjob will be ran.")
424 (license license:unlicense))) 427 (license license:unlicense)))
428
429(define-public git-bug
430 (package
431 (name "git-bug")
432 (version "0.10.1")
433 (source (origin
434 (method git-fetch)
435 (uri (git-reference
436 (url "https://github.com/git-bug/git-bug")
437 (commit (string-append "v" version))))
438 (file-name (git-file-name name version))
439 (sha256
440 (base32
441 "1s3y8ll2942d6my2wz6bbipram4l6brbwwfvp2nr8cchzrb23dl8"))))
442 (build-system go-build-system)
443 (arguments
444 (list #:tests? #f ;; tests require several unpackaged dependencies
445 #:import-path "github.com/git-bug/git-bug"
446 #:phases
447 #~(modify-phases %standard-phases
448 (add-after 'unpack 'realize-symlinks
449 (lambda _
450 ;; Replace symlinks with a copy of the file. With symlinks,
451 ;; the build fails with "cannot embed irregular file".
452 (let* ((symlink-path
453 "src/github.com/vektah/gqlparser/v2/validator/prelude.graphql")
454 (canonical-path (canonicalize-path symlink-path)))
455 (delete-file symlink-path)
456 (copy-file canonical-path symlink-path)))))))
457 (native-inputs
458 (list go-github-com-99designs-gqlgen
459 go-github-com-99designs-keyring
460 go-github-com-araddon-dateparse
461 go-github-com-awesome-gocui-gocui
462 go-github-com-blevesearch-bleve
463 go-github-com-dustin-go-humanize
464 go-github-com-fatih-color
465 go-github-com-go-git-go-billy-v5
466 go-github-com-go-git-go-git-v5
467 go-github-com-gorilla-mux
468 go-github-com-hashicorp-golang-lru-v2
469 go-github-com-michaelmure-go-term-text
470 go-github-com-phayes-freeport
471 go-github-com-protonmail-go-crypto
472 go-github-com-shurcool-githubv4
473 go-github-com-skratchdot-open-golang
474 go-github-com-spf13-cobra
475 go-github-com-stretchr-testify
476 go-github-com-vbauerster-mpb
477 go-github-com-vektah-gqlparser-v2
478 ;; The build fails without this specific version of
479 ;; go-gitlab-com-gitlab-org-api-client-go.
480 go-gitlab-com-gitlab-org-api-client-go-0.116
481 go-golang-org-x-oauth2))
482 (home-page "https://github.com/git-bug/git-bug")
483 (synopsis "Distributed, offline-first bug tracker embedded in git")
484 (description "git-bug is a standalone, distributed, offline-first issue
485management tool that embeds issues, comments, and more as objects in a git
486repository.")
487 (license license:gpl3+)))