[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/13: gnu: Add gocryptfs.
From: |
guix-commits |
Subject: |
11/13: gnu: Add gocryptfs. |
Date: |
Mon, 27 Mar 2023 12:07:06 -0400 (EDT) |
lfam pushed a commit to branch wip-go-updates
in repository guix.
commit 976f5ccd208ff232659cfcda92a641bd5f15340c
Author: Felix Lechner <felix.lechner@lease-up.com>
AuthorDate: Sun Mar 5 12:54:55 2023 -0800
gnu: Add gocryptfs.
* gnu/packages/file-systems.scm (gocryptfs): New variable.
Signed-off-by: Leo Famulari <leo@famulari.name>
---
gnu/packages/file-systems.scm | 74 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm
index bc5bb41fb3..a62433c01c 100644
--- a/gnu/packages/file-systems.scm
+++ b/gnu/packages/file-systems.scm
@@ -435,6 +435,80 @@ significantly increases the risk of irreversible data
loss!")
(license (list license:gpl2 ; fsattr/src/e4attr.* → sbin/fsattr
license:gpl3+)))) ; the rest
+(define-public gocryptfs
+ (package
+ (name "gocryptfs")
+ (version "2.3.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/rfjakob/gocryptfs")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1m0xk5imkx81i1l4wv1j1xh9ckp0gqssq4v46pkkcq2xlv2dvxlr"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/rfjakob/gocryptfs"
+ #:build-flags
+ #~(list
+ "-ldflags" (string-append
+ "-X main.GitVersion=" #$version
+ " -X main.GitVersionFuse=" #$(package-version
+
go-github-com-hanwen-go-fuse-v2)
+ " -X main.BuildDate=" "[reproducible]"))
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; after 'check phase, should maybe unmount leftover mounts as in
+ ;;
https://github.com/rfjakob/gocryptfs/blob/a55b3cc15a6d9bce116a90f33df4bc99d9dd6a10/test.bash#L28
+ (replace 'build
+ (lambda arguments
+ (for-each
+ (lambda (directory)
+ (apply (assoc-ref %standard-phases 'build)
+ (append arguments (list #:import-path directory))))
+ (list
+ "github.com/rfjakob/gocryptfs"
+ "github.com/rfjakob/gocryptfs/gocryptfs-xray"
+ "github.com/rfjakob/gocryptfs/contrib/statfs"
+ "github.com/rfjakob/gocryptfs/contrib/findholes"
+ "github.com/rfjakob/gocryptfs/contrib/atomicrename")))))))
+ (native-inputs (list
+ go-github-com-hanwen-go-fuse-v2
+ go-github-com-aperturerobotics-jacobsa-crypto
+ go-github-com-jacobsa-oglematchers
+ go-github-com-jacobsa-oglemock
+ go-github-com-jacobsa-ogletest
+ go-github-com-jacobsa-reqtrace
+ go-github-com-pkg-xattr
+ go-github-com-rfjakob-eme
+ go-github-com-sabhiram-go-gitignore
+ go-github-com-spf13-pflag
+ go-golang-org-x-crypto
+ go-golang-org-x-net
+ go-golang-org-x-sys
+ go-golang-org-x-term
+ openssl
+ pkg-config))
+ (home-page "https://github.com/rfjakob/gocryptfs")
+ (synopsis "Encrypted overlay filesystem")
+ (description
+ "Gocryptfs is an encrypted overlay filesystem written in Go. It
+features a file-based encryption that is implemented as a mountable
+FUSE filesystem.
+
+Gocryptfs was inspired by EncFS and strives to fix its security issues
+while providing good performance. Gocryptfs is as fast as EncFS in the
+default mode and significantly faster than paranoia mode in EncFS,
+which provides a security level comparable to Gocryptfs.
+
+On CPUs without AES-NI, gocryptfs uses OpenSSL through a thin wrapper
+called stupidgcm. This provides a 4x speedup compared to Go's builtin
+AES-GCM implementation.")
+ (license license:expat)))
+
(define-public gphotofs
(package
(name "gphotofs")
- branch wip-go-updates created (now d7239cd7df), guix-commits, 2023/03/27
- 03/13: gnu: Add go-github-com-hanwen-go-fuse-v2., guix-commits, 2023/03/27
- 02/13: gnu: go-golang-org-x-net: Update to 0.5.0., guix-commits, 2023/03/27
- 01/13: gnu: go-golang-org-x-sys: Update to 0.4.0., guix-commits, 2023/03/27
- 04/13: gnu: Add go-github-com-aperturerobotics-jacobsa-crypto., guix-commits, 2023/03/27
- 06/13: gnu: Add go-github-com-jacobsa-oglemock., guix-commits, 2023/03/27
- 11/13: gnu: Add gocryptfs.,
guix-commits <=
- 12/13: gnu: Go 1.19: Update to 1.19.7., guix-commits, 2023/03/27
- 10/13: gnu: Add go-github-com-rfjakob-eme., guix-commits, 2023/03/27
- 08/13: gnu: Add go-github-com-jacobsa-reqtrace., guix-commits, 2023/03/27
- 05/13: gnu: Add go-github-com-jacobsa-oglematchers., guix-commits, 2023/03/27
- 13/13: gnu: Go 1.20: Update to 1.20.2., guix-commits, 2023/03/27
- 07/13: gnu: Add go-github-com-jacobsa-ogletest., guix-commits, 2023/03/27
- 09/13: gnu: Add go-github-com-pkg-xattr., guix-commits, 2023/03/27