* gnu/packages/pep.scm (fdik-libetpan, sequoia4pEp, pep-engine): New
gnu/packages/pep.scm | 105 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 105 insertions(+)
Toggle diff (125 lines)
diff --git a/gnu/packages/pep.scm b/gnu/packages/pep.scm
index 9e5be66f78..d69e1a3929 100644
--- a/gnu/packages/pep.scm
+++ b/gnu/packages/pep.scm
(define-module (gnu packages pep)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
+ #:use-module (guix git-download)
#:use-module (guix hg-download)
+ #:use-module (guix build-system gnu)
#:use-module (guix build-system python)
#:use-module (gnu packages)
+ #:use-module (gnu packages base)
+ #:use-module (gnu packages linux)
+ #:use-module (gnu packages mail) ; for libetpan
+ #:use-module (gnu packages nettle)
+ #:use-module (gnu packages pkg-config)
+ #:use-module (gnu packages sequoia)
+ #:use-module (gnu packages sqlite)
+ #:use-module (gnu packages tls)
#:use-module (gnu packages xml))
@@ -47,3 +57,98 @@ provides the command line front end yml2c. As default, it compiles
your script and outputs to stdout, that usually is the terminal. Your
shell provides options to redirect the output into a pipe or a file.")
+ ;; pEp Engine requires libetpan with a set of patches that have not been
+ (let ((commit "370050956b7ee95b0c3b54c018b40ad1f366683a") ; 2019-11-12
+ (checksum "0lcqcnij3ray7nssvq0lzb352wmnab8ffzk7dgff2c68mvjbh1l6")
+ (version (string-append "1.6-" revision "." (string-take commit 8)))
+ (inherit (package-source libetpan))
+ (url "https://github.com/fdik/libetpan")
+ (file-name (string-append name "-" version))
+ (sha256 (base32 checksum)))))))
+ ;; Currently pEp Engine requires sequoia in not-so-current version
+ (package/inherit sequoia
+ (url "https://gitlab.com/sequoia-pgp/sequoia.git")
+ (commit "0eb1b6cd846ea8c36b3dfdf01ec88383fc64f2fe")))
+ (base32 "06dqs9whwp9lfibwp8dqm0aw4nm3s3v4jp2n4fz51zcvsld40nfh"))
+ (file-name (git-file-name name version))))))
+(define-public pep-engine
+ (url "https://pep.foundation/dev/repos/pEpEngine")
+ (changeset "3db667f48863"))) ;; r4701
+ (file-name (string-append name "-" version "-checkout"))
+ (base32 "0ljf79j4ng7l8w6pbdcrfzb4yk51zslypvq0n72ib1d7grqvnagi"))))
+ (build-system gnu-build-system)
+ (modify-phases %standard-phases
+ ;; pEpEngie does not use autotools and configure,
+ ;; but a local.conf. We need to tweak the values there.
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (yml2 (assoc-ref inputs "yml2")))
+ (with-output-to-file "local.conf"
+PER_MACHINE_DIRECTORY=${PREFIX}/share/pEp
+SYSTEM_DB=~a/share/pEp/system.db
+ out out (which "asn1c")
+ (string-append yml2 "/bin"))))
+ (add-after 'install 'install-db
+ (invoke "make" "-C" "db" "install"))))))
+ `(("asn1c" ,asn1c) ; >= 0.9.27
+ ("pkg-config" ,pkg-config)
+ `(("libetpan" ,fdik-libetpan)
+ ("sequoia" ,sequoia4pEp)
+ ("util-linux" ,util-linux "lib"))) ;; uuid.h
+ (home-page "https://pep.foundation/")
+ (synopsis "p≡p engine")
+ (description "The p≡p engine is the core part of p≡p (pretty Easy
+ (license ;; code: GPL 3, docs: CC-BY-SA
+ (list license:gpl3 license:cc-by-sa3.0))))