--- Begin Message ---
Subject: |
[PATCH 1/1] gnu: Add enchive |
Date: |
Tue, 16 Oct 2018 14:18:14 +0200 |
From: nixo <address@hidden>
---
gnu/packages/crypto.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 33f4abb5a..08faccfa1 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -10,6 +10,7 @@
;;; Copyright © 2018 Efraim Flashner <address@hidden>
;;; Copyright © 2018 Arun Isaac <address@hidden>
;;; Copyright © 2018 Nicolas Goaziou <address@hidden>
+;;; Copyright © 2018 Nicolò Balzarotti <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -854,3 +855,34 @@ public-key cryptography. Asignify is designed to be
portable and self-contained
with zero external dependencies. Asignify can verify OpenBSD signatures, but
it
cannot sign messages in OpenBSD format yet.")
(license license:bsd-2))))
+
+(define-public enchive
+ (package
+ (name "enchive")
+ (version "3.4")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://github.com/skeeto/" name "/archive/"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "17hrxpp4cpn10bk48sfvfjc8hghky34agsnypam1v9f36kbalqfk"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:tests? #f ; no check target '
+ #:make-flags (list "CC=gcc" "PREFIX=$(out)")
+ #:phases (modify-phases %standard-phases
+ (delete 'configure)
+ (add-after 'install 'post-install
+ (lambda _
+ (let* ((out (assoc-ref %outputs "out"))
+ (lisp (string-append out
"/share/emacs/site-lisp")))
+ (install-file "enchive-mode.el" lisp)))))))
+ (synopsis "Encrypted personal archives")
+ (description
+ "Enchive is a tool to encrypt files to yourself for long-term
+archival. It's a focused, simple alternative to more complex solutions such as
+GnuPG or encrypted filesystems. Enchive has no external dependencies and is
+trivial to build for local use. Portability is emphasized over performance.")
+ (home-page "https://github.com/skeeto/enchive")
+ (license license:unlicense)))
--
2.18.0
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug#33064] [PATCH 1/1] gnu: Add enchive |
Date: |
Fri, 19 Oct 2018 23:01:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello Nicolò,
Nicolò Balzarotti <address@hidden> skribis:
> From: nixo <address@hidden>
>
> ---
> gnu/packages/crypto.scm | 32 ++++++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
Applied with the minor changes below reported by ‘guix lint’ and in the
build log. I also added a commit log that follows our conventions.
Thank you, and welcome! :-)
Ludo’.
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 08faccfa1..77b4dba6d 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -866,7 +866,8 @@ cannot sign messages in OpenBSD format yet.")
version ".tar.gz"))
(sha256
(base32
- "17hrxpp4cpn10bk48sfvfjc8hghky34agsnypam1v9f36kbalqfk"))))
+ "17hrxpp4cpn10bk48sfvfjc8hghky34agsnypam1v9f36kbalqfk"))
+ (file-name (string-append name "-" version ".tar.gz"))))
(build-system gnu-build-system)
(arguments
'(#:tests? #f ; no check target '
@@ -877,7 +878,8 @@ cannot sign messages in OpenBSD format yet.")
(lambda _
(let* ((out (assoc-ref %outputs "out"))
(lisp (string-append out
"/share/emacs/site-lisp")))
- (install-file "enchive-mode.el" lisp)))))))
+ (install-file "enchive-mode.el" lisp)
+ #t))))))
(synopsis "Encrypted personal archives")
(description
"Enchive is a tool to encrypt files to yourself for long-term
--- End Message ---