* [bug#40263] gnu: packages: crypto: Add libdecaf
@ 2020-03-27 22:28 Raghav Gururajan
2020-06-01 21:12 ` Jakub Kądziołka
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Raghav Gururajan @ 2020-03-27 22:28 UTC (permalink / raw)
To: 40263
[-- Attachment #1: Type: text/plain, Size: 91 bytes --]
Hello Guix!
Please find the attached patch to add "libdecaf" package.
Regards,
RG.
[-- Attachment #2: libdecaf.patch --]
[-- Type: application/octet-stream, Size: 2527 bytes --]
From 453d00938139cb773ebe7def47d0d46ba595ef99 Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <raghavgururajan@disroot.org>
Date: Fri, 27 Mar 2020 18:24:29 -0400
Subject: [PATCH 4/4] gnu: packages: crypto: Add libdecaf
* gnu/packages/crypto.scm (libdecaf): New variable.
---
gnu/packages/crypto.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index afe85ae497..014e40cdaf 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -15,6 +15,7 @@
;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
+;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -41,8 +42,10 @@
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages cryptsetup)
+ #:use-module (gnu packages documentation)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gnupg)
+ #:use-module (gnu packages graphviz)
#:use-module (gnu packages image)
#:use-module (gnu packages kerberos)
#:use-module (gnu packages libbsd)
@@ -75,6 +78,42 @@
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
+(define-public libdecaf
+ (package
+ (name "libdecaf")
+ (version "1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri
+ (git-reference
+ (url "https://git.code.sf.net/p/ed448goldilocks/code")
+ (commit
+ (string-append "v" version))))
+ (file-name
+ (git-file-name name version))
+ (sha256
+ (base32 "1xr13pibx1c0gbjmir7rwyj7y2bwr6pmkysdl66w3yvjmvxipvk0"))))
+ (build-system cmake-build-system)
+ (arguments
+ '(#:configure-flags
+ (list
+ "-DENABLE_SHARED=ON"
+ "-DENABLE_STATIC=ON"
+ "-DENABLE_STRICT=YES"
+ "-DENABLE_TESTS=YES"
+ "-DGENERATED_SOURCE_PATH=OFF")))
+ (native-inputs
+ `(("dot" ,graphviz)
+ ("doxygen" ,doxygen)
+ ("python" ,python-2.7)))
+ (synopsis "Decaf Elliptic Curve Library")
+ (description "The libdecaf library is an implementation of elliptic curve
+cryptography using the Montgomery and Edwards curves Curve25519, Ed25519,
+Ed448-Goldilocks and Curve448, using the Decaf encoding.")
+ (home-page "http://ed448goldilocks.sourceforge.net/")
+ (license license:expat)))
+
(define-public libsodium
(package
(name "libsodium")
--
2.26.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#40263] gnu: packages: crypto: Add libdecaf
2020-03-27 22:28 [bug#40263] gnu: packages: crypto: Add libdecaf Raghav Gururajan
@ 2020-06-01 21:12 ` Jakub Kądziołka
2021-03-13 23:24 ` [bug#40263] LibDecaf Raghav Gururajan via Guix-patches via
2021-03-20 4:50 ` bug#40263: #40263 --> #47274 Raghav Gururajan via Guix-patches via
2 siblings, 0 replies; 4+ messages in thread
From: Jakub Kądziołka @ 2020-06-01 21:12 UTC (permalink / raw)
To: Raghav Gururajan; +Cc: 40263
[-- Attachment #1: Type: text/plain, Size: 363 bytes --]
On Fri, Mar 27, 2020 at 10:28:43PM +0000, Raghav Gururajan wrote:
> Hello Guix!
>
> Please find the attached patch to add "libdecaf" package.
>
> Regards,
> RG.
Thanks for the patch! If I may ask, what is the point of dot and doxygen
in the native-inputs? They don't seem to affect the result of the build
in any way.
Regards,
Jakub Kądziołka
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#40263] LibDecaf
2020-03-27 22:28 [bug#40263] gnu: packages: crypto: Add libdecaf Raghav Gururajan
2020-06-01 21:12 ` Jakub Kądziołka
@ 2021-03-13 23:24 ` Raghav Gururajan via Guix-patches via
2021-03-20 4:50 ` bug#40263: #40263 --> #47274 Raghav Gururajan via Guix-patches via
2 siblings, 0 replies; 4+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-03-13 23:24 UTC (permalink / raw)
To: 40263, kuba
[-- Attachment #1.1.1: Type: text/plain, Size: 579 bytes --]
Hi Jakub!
So sorry, I never received the email. Just came across your response at
https://issues.guix.gnu.org.
*** QUOTE ***
Thanks for the patch! If I may ask, what is the point of dot and
doxygenin the native-inputs? They don't seem to affect the result of the
buildin any way.
*** QUOTE ***
They are for generating documentation. It was not enabled ,but it is now
(see below).
I have revised the patch to involve the following:
[1] Update to 1.0.1.
[2] Enable documentation.
[3] Enable python binding.
Please find the attachment.
Regards,
RG.
[-- Attachment #1.1.2: 0001-gnu-Add-libdecaf.patch --]
[-- Type: text/x-patch, Size: 3577 bytes --]
From 8207939ae9d4a8a97db2b1ea2e7fd951e3bb676f Mon Sep 17 00:00:00 2001
From: Raghav Gururajan <rg@raghavgururajan.name>
Date: Sat, 13 Mar 2021 17:08:57 -0500
Subject: [PATCH] gnu: Add libdecaf.
* gnu/packages/crypto.scm (libdecaf): New variable.
---
gnu/packages/crypto.scm | 63 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 0000e7fbf2..3959464d56 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -47,9 +47,11 @@
#:use-module (gnu packages compression)
#:use-module (gnu packages crates-io)
#:use-module (gnu packages cryptsetup)
+ #:use-module (gnu packages documentation)
#:use-module (gnu packages gettext)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages golang)
+ #:use-module (gnu packages graphviz)
#:use-module (gnu packages image)
#:use-module (gnu packages kerberos)
#:use-module (gnu packages libbsd)
@@ -88,6 +90,67 @@
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
+(define-public libdecaf
+ (package
+ (name "libdecaf")
+ (version "1.0.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "git://git.code.sf.net/p/ed448goldilocks/code")
+ (commit
+ (string-append "v" version))))
+ (file-name
+ (git-file-name name version))
+ (sha256
+ (base32 "1ajgmyvc6a4m1h2hg1g4wz7ibx10x1xys9m6ancnmmf1f2srlfly"))))
+ (build-system cmake-build-system)
+ (outputs '("out" "python" "doc"))
+ (arguments
+ `(#:configure-flags '("-DENABLE_STATIC=OFF")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-python-binding
+ (lambda _
+ (substitute* "python/setup.py"
+ (("gmake")
+ "make")
+ (("'\\.\\.', 'build', 'lib', 'libdecaf\\.so'")
+ "'..', '..', 'build', 'src', 'libdecaf.so'"))
+ #t))
+ (add-after 'install 'install-python-binding
+ (lambda* (#:key outputs #:allow-other-keys)
+ (with-directory-excursion "../source/python"
+ (invoke "python" "setup.py" "install"
+ (string-append "--prefix=" (assoc-ref outputs "python"))
+ "--root=/"))
+ #t))
+ (add-after 'install-python-binding 'install-documentation
+ (lambda* (#:key outputs #:allow-other-keys)
+ (invoke "make" "doc")
+ (let* ((doc (assoc-ref outputs "doc"))
+ (dest (string-append doc "/share/doc")))
+ (copy-recursively "doc" dest))
+ #t)))))
+ (native-inputs
+ `(("dot" ,graphviz)
+ ("doxygen" ,doxygen)
+ ("python" ,python-wrapper)))
+ (inputs
+ `(("python2" ,python-2.7)
+ ("python3" ,python)))
+ (synopsis "Decaf Elliptic Curve Library")
+ (description "The libdecaf library is an implementation of elliptic curve
+cryptography using the Montgomery and Edwards curves Curve25519, Ed25519,
+Ed448-Goldilocks and Curve448, using the Decaf encoding.")
+ (home-page "http://ed448goldilocks.sourceforge.net/")
+ (license
+ (list
+ ;; Library.
+ license:expat
+ ;; Binding.
+ license:bsd-2))))
+
(define-public libsodium
(package
(name "libsodium")
--
2.30.2
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#40263: #40263 --> #47274
2020-03-27 22:28 [bug#40263] gnu: packages: crypto: Add libdecaf Raghav Gururajan
2020-06-01 21:12 ` Jakub Kądziołka
2021-03-13 23:24 ` [bug#40263] LibDecaf Raghav Gururajan via Guix-patches via
@ 2021-03-20 4:50 ` Raghav Gururajan via Guix-patches via
2 siblings, 0 replies; 4+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-03-20 4:50 UTC (permalink / raw)
To: 40263-close
[-- Attachment #1.1: Type: text/plain, Size: 86 bytes --]
Hello Guix!
This patch is now a part of #47274. So I'll close.
Regards,
RG.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-20 4:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-27 22:28 [bug#40263] gnu: packages: crypto: Add libdecaf Raghav Gururajan
2020-06-01 21:12 ` Jakub Kądziołka
2021-03-13 23:24 ` [bug#40263] LibDecaf Raghav Gururajan via Guix-patches via
2021-03-20 4:50 ` bug#40263: #40263 --> #47274 Raghav Gururajan 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).