unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#58340] Age encryption
@ 2022-10-06 17:05 Nicolas Graves via Guix-patches via
  2022-10-06 17:09 ` [bug#58340] [PATCH 1/2] gnu: Add go-filippo-io-edwards25519 Nicolas Graves via Guix-patches via
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-10-06 17:05 UTC (permalink / raw)
  To: 58340


Hi guix!

Here's a few patches to package the encryption tool age.
I'm probably going to send some other derived tools (passage notably).

-- 
Best regards,
Nicolas Graves




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#58340] [PATCH 1/2] gnu: Add go-filippo-io-edwards25519.
  2022-10-06 17:05 [bug#58340] Age encryption Nicolas Graves via Guix-patches via
@ 2022-10-06 17:09 ` Nicolas Graves via Guix-patches via
  2022-10-06 17:09   ` [bug#58340] [PATCH 2/2] gnu: Add age and its modules Nicolas Graves via Guix-patches via
  2022-10-13 21:09 ` [bug#58340] [PATCH v2 1/2] gnu: Add go-filippo-io-edwards25519 Nicolas Graves via Guix-patches via
  2022-10-13 21:10 ` [bug#58340] [PATCH v2] gnu: Add age and its modules Nicolas Graves via Guix-patches via
  2 siblings, 1 reply; 5+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-10-06 17:09 UTC (permalink / raw)
  To: 58340; +Cc: ngraves

* gnu/packages/golang.scm (go-filippo-io-edwards25519): New variable.
---
 gnu/packages/golang.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 4a4c706509..e8132eb138 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -926,6 +926,29 @@ (define-public go-std-1.17 (make-go-std go-1.17))
 (define-public go-std-1.18 (make-go-std go-1.18))
 (define-public go-std-1.19 (make-go-std go-1.19))
 
+(define-public go-filippo-io-edwards25519
+  (package
+    (name "go-filippo-io-edwards25519")
+    (version "1.0.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/FiloSottile/edwards25519")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "01m8hpaj0cwp250f7b0din09cf8j6j5y631grx67qfhvfrmwr1zr"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "filippo.io/edwards25519"))
+    (home-page "https://filippo.io/edwards25519")
+    (synopsis "Group logic for the twisted Edwards curve")
+    (description
+     "This package implements the edwards25519 elliptic curve in Go, exposing
+the necessary APIs to build a wide array of higher-level primitives.")
+    (license license:bsd-3)))
+
 (define-public go-0xacab-org-leap-shapeshifter
   (let ((commit "0aa6226582efb8e563540ec1d3c5cfcd19200474")
         (revision "12"))
-- 
2.37.3





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#58340] [PATCH 2/2] gnu: Add age and its modules.
  2022-10-06 17:09 ` [bug#58340] [PATCH 1/2] gnu: Add go-filippo-io-edwards25519 Nicolas Graves via Guix-patches via
@ 2022-10-06 17:09   ` Nicolas Graves via Guix-patches via
  0 siblings, 0 replies; 5+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-10-06 17:09 UTC (permalink / raw)
  To: 58340; +Cc: ngraves

* gnu/packages/golang.scm
  (age): New variable.
  (go-filippo-io-cmd-age): New variable.
  (go-filippo-io-cmd-age-keygen): New variable.
---
 gnu/packages/golang.scm | 50 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index e8132eb138..7559e3ef9d 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -35,6 +35,7 @@
 ;;; Copyright © 2021 Lu Hui <luhux76@gmail.com>
 ;;; Copyright © 2022 Pier-Hugues Pellerin <phpellerin@gmail.com>
 ;;; Copyright © 2022 muradm <mail@muradm.net>
+;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -949,6 +950,55 @@ (define-public go-filippo-io-edwards25519
 the necessary APIs to build a wide array of higher-level primitives.")
     (license license:bsd-3)))
 
+(define-public age
+  (package
+    (name "age")
+    (version "1.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/FiloSottile/age")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "19fz68n262kvg2ssw4r6nik30zk6g6cy7rdi0fm05czwigqrdz1i"))))
+    (build-system go-build-system)
+    (arguments `(#:import-path "filippo.io/age"))
+    (propagated-inputs
+     (list go-filippo-io-cmd-age
+           go-filippo-io-cmd-age-keygen))
+    (home-page "https://filippo.io/age")
+    (synopsis "Secure file encryption tool, format, and Go library")
+    (description
+     "This package implements file encryption according to the
+@code{age-encryption.org/v1} specification. It features small explicit keys,
+no config options, and UNIX-style composability.")
+    (license license:bsd-3)))
+
+(define-public go-filippo-io-cmd-age
+  (package
+    (inherit age)
+    (name "go-filippo-io-cmd-age")
+    (propagated-inputs
+     (list go-golang-org-x-sys
+           go-golang-org-x-term
+           go-golang-org-x-crypto
+           go-filippo-io-edwards25519))
+    (arguments
+     `(#:import-path "filippo.io/age/cmd/age"
+       #:unpack-path "filippo.io/age"
+       #:install-source? #f))))
+
+(define-public go-filippo-io-cmd-age-keygen
+  (package
+    (inherit go-filippo-io-cmd-age)
+    (name "go-filippo-io-cmd-age-keygen")
+    (arguments
+     `(#:import-path "filippo.io/age/cmd/age-keygen"
+       #:unpack-path "filippo.io/age"
+       #:install-source? #f))))
+
 (define-public go-0xacab-org-leap-shapeshifter
   (let ((commit "0aa6226582efb8e563540ec1d3c5cfcd19200474")
         (revision "12"))
-- 
2.37.3





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#58340] [PATCH v2 1/2] gnu: Add go-filippo-io-edwards25519.
  2022-10-06 17:05 [bug#58340] Age encryption Nicolas Graves via Guix-patches via
  2022-10-06 17:09 ` [bug#58340] [PATCH 1/2] gnu: Add go-filippo-io-edwards25519 Nicolas Graves via Guix-patches via
@ 2022-10-13 21:09 ` Nicolas Graves via Guix-patches via
  2022-10-13 21:10 ` [bug#58340] [PATCH v2] gnu: Add age and its modules Nicolas Graves via Guix-patches via
  2 siblings, 0 replies; 5+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-10-13 21:09 UTC (permalink / raw)
  To: 58340; +Cc: ngraves

* gnu/packages/golang.scm (go-filippo-io-edwards25519): New variable.
---
 gnu/packages/golang.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index 53d1e38c28..f404adc646 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -927,6 +927,29 @@ (define-public go-std-1.17 (make-go-std go-1.17))
 (define-public go-std-1.18 (make-go-std go-1.18))
 (define-public go-std-1.19 (make-go-std go-1.19))
 
+(define-public go-filippo-io-edwards25519
+  (package
+    (name "go-filippo-io-edwards25519")
+    (version "1.0.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/FiloSottile/edwards25519")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "01m8hpaj0cwp250f7b0din09cf8j6j5y631grx67qfhvfrmwr1zr"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "filippo.io/edwards25519"))
+    (home-page "https://filippo.io/edwards25519")
+    (synopsis "Group logic for the twisted Edwards curve")
+    (description
+     "This package implements the edwards25519 elliptic curve in Go, exposing
+the necessary APIs to build a wide array of higher-level primitives.")
+    (license license:bsd-3)))
+
 (define-public go-0xacab-org-leap-shapeshifter
   (let ((commit "0aa6226582efb8e563540ec1d3c5cfcd19200474")
         (revision "12"))
-- 
2.38.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#58340] [PATCH v2] gnu: Add age and its modules.
  2022-10-06 17:05 [bug#58340] Age encryption Nicolas Graves via Guix-patches via
  2022-10-06 17:09 ` [bug#58340] [PATCH 1/2] gnu: Add go-filippo-io-edwards25519 Nicolas Graves via Guix-patches via
  2022-10-13 21:09 ` [bug#58340] [PATCH v2 1/2] gnu: Add go-filippo-io-edwards25519 Nicolas Graves via Guix-patches via
@ 2022-10-13 21:10 ` Nicolas Graves via Guix-patches via
  2 siblings, 0 replies; 5+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-10-13 21:10 UTC (permalink / raw)
  To: 58340; +Cc: ngraves

* gnu/packages/golang.scm
  (age): New variable.
  (go-filippo-io-cmd-age): New variable.
  (go-filippo-io-cmd-age-keygen): New variable.
---
 gnu/packages/golang.scm | 51 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index f404adc646..b9ac942702 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -36,6 +36,7 @@
 ;;; Copyright © 2022 Pier-Hugues Pellerin <phpellerin@gmail.com>
 ;;; Copyright © 2022 muradm <mail@muradm.net>
 ;;; Copyright © 2022 Dhruvin Gandhi <contact@dhruvin.dev>
+;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -950,6 +951,56 @@ (define-public go-filippo-io-edwards25519
 the necessary APIs to build a wide array of higher-level primitives.")
     (license license:bsd-3)))
 
+(define-public age
+  (package
+    (name "age")
+    (version "1.0.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/FiloSottile/age")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "19fz68n262kvg2ssw4r6nik30zk6g6cy7rdi0fm05czwigqrdz1i"))))
+    (build-system go-build-system)
+    (arguments `(#:import-path "filippo.io/age"))
+    (inputs
+     (list go-golang-org-x-sys
+           go-golang-org-x-term
+           go-golang-org-x-crypto
+           go-filippo-io-edwards25519))
+    (propagated-inputs
+     (list go-filippo-io-cmd-age
+           go-filippo-io-cmd-age-keygen))
+    (home-page "https://filippo.io/age")
+    (synopsis "Secure file encryption tool, format, and Go library")
+    (description
+     "This package implements file encryption according to the
+@code{age-encryption.org/v1} specification. It features small explicit keys,
+no config options, and UNIX-style composability.")
+    (license license:bsd-3)))
+
+(define-public go-filippo-io-cmd-age
+  (package
+    (inherit age)
+    (name "go-filippo-io-cmd-age")
+    (propagated-inputs '())
+    (arguments
+     `(#:import-path "filippo.io/age/cmd/age"
+       #:unpack-path "filippo.io/age"
+       #:install-source? #f))))
+
+(define-public go-filippo-io-cmd-age-keygen
+  (package
+    (inherit go-filippo-io-cmd-age)
+    (name "go-filippo-io-cmd-age-keygen")
+    (arguments
+     `(#:import-path "filippo.io/age/cmd/age-keygen"
+       #:unpack-path "filippo.io/age"
+       #:install-source? #f))))
+
 (define-public go-0xacab-org-leap-shapeshifter
   (let ((commit "0aa6226582efb8e563540ec1d3c5cfcd19200474")
         (revision "12"))
-- 
2.38.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-13 21:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-06 17:05 [bug#58340] Age encryption Nicolas Graves via Guix-patches via
2022-10-06 17:09 ` [bug#58340] [PATCH 1/2] gnu: Add go-filippo-io-edwards25519 Nicolas Graves via Guix-patches via
2022-10-06 17:09   ` [bug#58340] [PATCH 2/2] gnu: Add age and its modules Nicolas Graves via Guix-patches via
2022-10-13 21:09 ` [bug#58340] [PATCH v2 1/2] gnu: Add go-filippo-io-edwards25519 Nicolas Graves via Guix-patches via
2022-10-13 21:10 ` [bug#58340] [PATCH v2] gnu: Add age and its modules Nicolas Graves via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).