Subject: [bug#69612] [PATCH v2] gnu: Add ssh-to-age.

From: Giacomo Leidi <[email-masked]>
Date: Thu, 7 Mar 2024 15:32:12 +0100

* gnu/packages/crypto.scm (ssh-to-age): New variable.

Change-Id: Ic8b8da90abe5f18ed5989d231a90643e0c2d7163
---
 gnu/packages/crypto.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 9d47ebb4fd..de9346746d 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -27,6 +27,7 @@
 ;;; Copyright © 2022 Denis 'GNUtoo' Carikli <[email-masked]>
 ;;; Copyright © 2023 Ivan Vilata-i-Balaguer <[email-masked]>
 ;;; Copyright © 2023 Foundation Devices, Inc. <[email-masked]>
+;;; Copyright © 2024 Giacomo Leidi <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -62,6 +63,7 @@ (define-module (gnu packages crypto)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages golang)
   #:use-module (gnu packages golang-build)
+  #:use-module (gnu packages golang-crypto)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages image)
   #:use-module (gnu packages kerberos)
@@ -1674,6 +1676,32 @@ (define-public libxcrypt
     (home-page "https://github.com/besser82/libxcrypt")
     (license license:lgpl2.1)))
 
+(define-public ssh-to-age
+  (package
+    (name "ssh-to-age")
+    (version "1.1.7")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/Mic92/ssh-to-age")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "134gpbalyll238wvj9ci0rascgm4csayz863ci99cy5qq8266wrl"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/Mic92/ssh-to-age"))
+    (propagated-inputs (list go-golang-org-x-sys
+                             go-golang-org-x-crypto
+                             go-filippo-io-edwards25519
+                             go-filippo-io-age))
+    (home-page "https://github.com/Mic92/ssh-to-age")
+    (synopsis "Convert SSH Ed25519 keys to age keys")
+    (description "This package provides @code{ssh-to-age}: a Go command line
+utility to convert SSH Ed25519 keys to age keys.")
+    (license license:expat)))
+
 (define-public keychain
   (package
     (name "keychain")

base-commit: 0f2eede9f1d4574813935b7f58384036d509002d
-- 
2.41.0