From c8287b8047e8302813038038569edb80d85f033d Mon Sep 17 00:00:00 2001 From: Hilton Chain Date: Sat, 28 Jan 2023 16:15:41 +0800 Subject: [PATCH] rosenthal: Add misso. * rosenthal/packages/authentication.scm (misso): New variable. --- rosenthal/packages/authentication.scm | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 rosenthal/packages/authentication.scm diff --git a/rosenthal/packages/authentication.scm b/rosenthal/packages/authentication.scm new file mode 100644 index 0000000..5957388 --- /dev/null +++ b/rosenthal/packages/authentication.scm @@ -0,0 +1,44 @@ +;; SPDX-FileCopyrightText: 2023 Hilton Chain +;; +;; SPDX-License-Identifier: GPL-3.0-or-later + +(define-module (rosenthal packages authentication) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix build-system go) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (gnu packages golang) + #:use-module (rosenthal packages golang)) + +(define-public misso + (let ((commit "33faca42450f78bab2cac0421d693d8742b34969") + (revision "0")) + (package + (name "misso") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nyaone/misso") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0yn9i9djbnlvxxiyrbm5kbgd2klpl59374kr60hgjz6qw1pik6gf")))) + (build-system go-build-system) + (arguments + (list #:go go-1.19 + #:install-source? #f + #:import-path "misso")) + (propagated-inputs + (list go-github-com-gin-gonic-gin + go-github-com-go-redis-redis-v9 + go-github-com-ory-hydra-client-go-v2 + go-go-uber-org-zap + go-gopkg-in-yaml-v3)) + (home-page "https://sso.nya.one/") + (synopsis "Single-Sign-On with Misskey") + (description + "This package provides @code{MiSSO}, a Single-Sign-On system for +@code{Misskey}.") + (license license:agpl3))))