* [bug#58768] [PATCH] gnu: Add gocryptfs. @ 2022-10-25 0:23 Felix Lechner via Guix-patches via 2022-10-25 0:25 ` [bug#58768] Patch attached Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via 0 siblings, 2 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 0:23 UTC (permalink / raw) To: 58768 [-- Attachment #1: Type: text/plain, Size: 532 bytes --] Control: tags -1 + patch Control: block -1 by 58658 58659 Hi, This patch adds Gocryptfs to master. It's a file-based, encrypted overlay file system inspired by EncFS—but better. Since there are some exotic prerequisites, I placed the code in its own file. Please note that Gocryptfs requires updates to go-golang-org-x-net [1] and go-github-com-sabhiram-go-gitignore. [2] Those were filed separately. Thanks! Kind regards, Felix Lechner [1] https://debbugs.gnu.org/58658 [2] https://debbugs.gnu.org/58659 [-- Attachment #2: gocryptfs.scm --] [-- Type: text/x-scheme, Size: 12982 bytes --] (define-module (gnu packages gocryptfs)) (use-modules (gnu packages golang) (gnu packages pkg-config) (gnu packages tls) (guix build-system go) (guix gexp) (guix git-download) ((guix licenses) #:prefix license:) (guix packages)) (define-public go-github-com-hanwen-go-fuse-v2 (let ((commit "4c25c9c1eecefb8beeea3daddf3486eb1dd48b89") (revision "0")) (package (name "go-github-com-hanwen-go-fuse-v2") (version (git-version "2.1.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/hanwen/go-fuse") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "0hi3x963bj9hcngyy2ba3mipcqx5gwqvcj7vg1r4vlal2qbsqcmf")))) (build-system go-build-system) (arguments '(#:import-path "github.com/hanwen/go-fuse/v2")) (native-inputs (list go-golang-org-x-sys go-golang-org-x-sync go-github-com-kylelemons-godebug)) (home-page "https://github.com/hanwen/go-fuse") (synopsis "Go bindings for FUSE filesystems") (description "This is a repository containing Go bindings for writing FUSE file systems.") (license license:bsd-3)))) (define-public go-github-com-jacobsa-crypto (let ((commit "9f44e2d11115452dad8f404f029574422855f46a") (revision "0")) (package (name "go-github-com-jacobsa-crypto") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jacobsa/crypto") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "18c3cx8izxdajq22zdq0n19j9d2l6iickd3mz39j5h96kw7l5qmy")))) (build-system go-build-system) (arguments (list #:import-path "github.com/jacobsa/crypto" ;; Source-only package. #:tests? #f #:phases #~(modify-phases %standard-phases ;; Source-only package. (delete 'build)))) (home-page "https://github.com/jacobsa/crypto") (synopsis "Cryptography missing from the Go standard library") (description "This repository contains Go packages related to cryptographic standards that are not included in the Go standard library.") (license license:asl2.0)))) (define-public go-github-com-jacobsa-oglematchers (let ((commit "141901ea67cd4769c6800aa7bfdfc558fa22bda5") (revision "0")) (package (name "go-github-com-jacobsa-oglematchers") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jacobsa/oglematchers") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "09ff5x6vbhd9zl1z4yzyk573ifh16rry38q1rx986kbz4hqkmniq")))) (build-system go-build-system) (arguments '(#:import-path "github.com/jacobsa/oglematchers" ;; break loop with with go-github-com-jacobsa-ogletest #:tests? #f)) (home-page "https://github.com/jacobsa/oglematchers") (synopsis "Matchers for Go testing framework") (description "Package oglematchers provides a set of matchers useful in a testing or mocking framework. These matchers are inspired by and mostly compatible with Google Test for C++ and Google JS Test.") (license license:asl2.0)))) (define-public go-github-com-jacobsa-oglemock (let ((commit "e94d794d06ffc6de42cb19d0dab3c219efdd6dcf") (revision "0")) (package (name "go-github-com-jacobsa-oglemock") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jacobsa/oglemock") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "14yxf8ykwdwkcccksl6741xgzcf8qykyi58kp4maxpgscqhdl8rq")))) (build-system go-build-system) (arguments (list #:import-path "github.com/jacobsa/oglemock" ;; break loop with with go-github-com-jacobsa-ogletest #:tests? #f)) (native-inputs (list go-github-com-jacobsa-oglematchers)) (home-page "https://github.com/jacobsa/oglemock") (synopsis "Mocking framework for unit tests") (description "Package oglemock provides a mocking framework for unit tests.") (license license:asl2.0)))) (define-public go-github-com-jacobsa-ogletest (let ((commit "80d50a735a1108a2aeb7abc4a988d183f20c5292") (revision "0")) (package (name "go-github-com-jacobsa-ogletest") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jacobsa/ogletest") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "1lbwbxzr75g65q07ry5k4kglxqs3ym7xkvqznzm55rm3qk76v83r")))) (build-system go-build-system) (arguments '(#:import-path "github.com/jacobsa/ogletest" ;; These tests should be made working #:tests? #f)) (native-inputs (list go-github-com-jacobsa-oglematchers go-github-com-jacobsa-oglemock go-github-com-jacobsa-reqtrace go-golang-org-x-net)) (home-page "https://github.com/jacobsa/ogletest") (synopsis "Expressive unit tests") (description "Package ogletest provides a framework for writing expressive unit tests. It integrates with the builtin testing package, so it works with the gotest command. Unlike the testing package which offers only basic capabilities for signalling failures, it offers ways to express expectations and get nice failure messages automatically.") (license license:asl2.0)))) (define-public go-github-com-jacobsa-reqtrace (let ((commit "245c9e0234cb2ad542483a336324e982f1a22934") (revision "0")) (package (name "go-github-com-jacobsa-reqtrace") (version (git-version "0.0.0" revision commit)) (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/jacobsa/reqtrace") (commit commit))) (file-name (git-file-name name version)) (sha256 (base32 "0zfyijig10896v42rvxka1n4wn6lijqz40y2281187l7mq8vv5jn")))) (build-system go-build-system) (arguments '(#:import-path "github.com/jacobsa/reqtrace")) (inputs (list go-golang-org-x-net)) (home-page "https://github.com/jacobsa/reqtrace") (synopsis "Simple request tracing framework") (description "Package reqtrace contains a very simple request tracing framework.") (license license:asl2.0)))) (define-public go-github-com-pkg-xattr (package (name "go-github-com-pkg-xattr") (version "0.4.9") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/pkg/xattr") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0qg4zh0d8m4adaiicsd0cpw0w6g8sk01f4jz7jyxgirh1wfcsqyz")))) (build-system go-build-system) (arguments '(#:import-path "github.com/pkg/xattr")) (native-inputs (list go-golang-org-x-sys)) (home-page "https://github.com/pkg/xattr") (synopsis "Support for extended file system attributes") (description "Package xattr provides support for extended attributes on Linux, Darwin and FreeBSD. Extended attributes are name:value pairs permanently associated with files or directories. They are similar to the environment strings associated with a process. An attribute may be defined or undefined. If defined, its value may be empty or non-empty. You can find more details here: @@url{https://en.wikipedia.org/wiki/Extended_file_attributes, https://en.wikipedia.org/wiki/Extended_file_attributes} .") (license license:bsd-2))) (define-public go-github-com-rfjakob-eme (package (name "go-github-com-rfjakob-eme") (version "1.1.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/rfjakob/eme") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1yrbhvy0337mf12fp8p4sy8ry8r3w2qfdf8val5hj07p2lri0cqk")))) (build-system go-build-system) (arguments '(#:import-path "github.com/rfjakob/eme")) (home-page "https://github.com/rfjakob/eme") (synopsis "EME for Go") (description "EME (ECB-Mix-ECB or, clearer, Encrypt-Mix-Encrypt) is a wide-block encryption mode developed by Halevi and Rogaway.") (license license:expat))) (define-public gocryptfs (package (name "gocryptfs") (version "2.3.0") (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 "1lkcx61r93xq21scg98hrvclwwxbli93pqnnck0d08isvhgjd590")))) (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-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))) ^ permalink raw reply [flat|nested] 15+ messages in thread
* [bug#58768] Patch attached 2022-10-25 0:23 [bug#58768] [PATCH] gnu: Add gocryptfs Felix Lechner via Guix-patches via @ 2022-10-25 0:25 ` Felix Lechner via Guix-patches via 2022-10-25 6:30 ` ( via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via 1 sibling, 1 reply; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 0:25 UTC (permalink / raw) To: 58768 [-- Attachment #1: Type: text/plain, Size: 80 bytes --] Sorry, I meant to attach the patch instead of the file being added. Here it is. [-- Attachment #2: 0001-gnu-Add-gocryptfs.patch --] [-- Type: text/x-patch, Size: 14733 bytes --] From bf3d67684d0cba656b05ff3a102e9217dbf78934 Mon Sep 17 00:00:00 2001 From: Felix Lechner <felix.lechner@lease-up.com> Date: Sat, 22 Oct 2022 23:39:52 -0700 Subject: [PATCH] gnu: Add gocryptfs. * gnu/packages/gocryptfs.scm: New file. * gnu/packages/gocryptfs.scm (go-github-com-hanwen-go-fuse-v2): New variable. * gnu/packages/gocryptfs.scm (go-github-com-jacobsa-crypto): New variable. * gnu/packages/gocryptfs.scm (go-github-com-jacobsa-oglematchers): New variable. * gnu/packages/gocryptfs.scm (go-github-com-jacobsa-oglemock): New variable. * gnu/packages/gocryptfs.scm (go-github-com-jacobsa-ogletest): New variable. * gnu/packages/gocryptfs.scm (go-github-com-jacobsa-reqtrace): New variable. * gnu/packages/gocryptfs.scm (go-github-com-pkg-xattr): New variable. * gnu/packages/gocryptfs.scm (go-github-com-rfjakob-eme): New variable. * gnu/packages/gocryptfs.scm (gocryptfs): New variable. --- gnu/packages/gocryptfs.scm | 314 +++++++++++++++++++++++++++++++++++++ 1 file changed, 314 insertions(+) create mode 100644 gnu/packages/gocryptfs.scm diff --git a/gnu/packages/gocryptfs.scm b/gnu/packages/gocryptfs.scm new file mode 100644 index 0000000000..7893a3b4ca --- /dev/null +++ b/gnu/packages/gocryptfs.scm @@ -0,0 +1,314 @@ +(define-module (gnu packages gocryptfs)) + +(use-modules (gnu packages golang) + (gnu packages pkg-config) + (gnu packages tls) + (guix build-system go) + (guix gexp) + (guix git-download) + ((guix licenses) #:prefix license:) + (guix packages)) + +(define-public go-github-com-hanwen-go-fuse-v2 + (let ((commit "4c25c9c1eecefb8beeea3daddf3486eb1dd48b89") + (revision "0")) + (package + (name "go-github-com-hanwen-go-fuse-v2") + (version (git-version "2.1.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hanwen/go-fuse") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0hi3x963bj9hcngyy2ba3mipcqx5gwqvcj7vg1r4vlal2qbsqcmf")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/hanwen/go-fuse/v2")) + (native-inputs (list + go-golang-org-x-sys + go-golang-org-x-sync + go-github-com-kylelemons-godebug)) + (home-page "https://github.com/hanwen/go-fuse") + (synopsis "Go bindings for FUSE filesystems") + (description + "This is a repository containing Go bindings for writing FUSE file systems.") + (license license:bsd-3)))) + +(define-public go-github-com-jacobsa-crypto + (let ((commit "9f44e2d11115452dad8f404f029574422855f46a") + (revision "0")) + (package + (name "go-github-com-jacobsa-crypto") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/crypto") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "18c3cx8izxdajq22zdq0n19j9d2l6iickd3mz39j5h96kw7l5qmy")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/jacobsa/crypto" + ;; Source-only package. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + ;; Source-only package. + (delete 'build)))) + (home-page "https://github.com/jacobsa/crypto") + (synopsis "Cryptography missing from the Go standard library") + (description + "This repository contains Go packages related to cryptographic standards that are +not included in the Go standard library.") + (license license:asl2.0)))) + +(define-public go-github-com-jacobsa-oglematchers + (let ((commit "141901ea67cd4769c6800aa7bfdfc558fa22bda5") + (revision "0")) + (package + (name "go-github-com-jacobsa-oglematchers") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/oglematchers") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "09ff5x6vbhd9zl1z4yzyk573ifh16rry38q1rx986kbz4hqkmniq")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jacobsa/oglematchers" + ;; break loop with with go-github-com-jacobsa-ogletest + #:tests? #f)) + (home-page "https://github.com/jacobsa/oglematchers") + (synopsis "Matchers for Go testing framework") + (description + "Package oglematchers provides a set of matchers useful in a testing or mocking +framework. These matchers are inspired by and mostly compatible with Google +Test for C++ and Google JS Test.") + (license license:asl2.0)))) + +(define-public go-github-com-jacobsa-oglemock + (let ((commit "e94d794d06ffc6de42cb19d0dab3c219efdd6dcf") + (revision "0")) + (package + (name "go-github-com-jacobsa-oglemock") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/oglemock") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14yxf8ykwdwkcccksl6741xgzcf8qykyi58kp4maxpgscqhdl8rq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jacobsa/oglemock" + ;; break loop with with go-github-com-jacobsa-ogletest + #:tests? #f)) + (native-inputs (list + go-github-com-jacobsa-oglematchers)) + (home-page "https://github.com/jacobsa/oglemock") + (synopsis "Mocking framework for unit tests") + (description + "Package oglemock provides a mocking framework for unit tests.") + (license license:asl2.0)))) + +(define-public go-github-com-jacobsa-ogletest + (let ((commit "80d50a735a1108a2aeb7abc4a988d183f20c5292") + (revision "0")) + (package + (name "go-github-com-jacobsa-ogletest") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/ogletest") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lbwbxzr75g65q07ry5k4kglxqs3ym7xkvqznzm55rm3qk76v83r")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jacobsa/ogletest" + ;; These tests should be made working + #:tests? #f)) + (native-inputs (list + go-github-com-jacobsa-oglematchers + go-github-com-jacobsa-oglemock + go-github-com-jacobsa-reqtrace + go-golang-org-x-net)) + (home-page "https://github.com/jacobsa/ogletest") + (synopsis "Expressive unit tests") + (description + "Package ogletest provides a framework for writing expressive unit tests. It +integrates with the builtin testing package, so it works with the gotest +command. Unlike the testing package which offers only basic capabilities for +signalling failures, it offers ways to express expectations and get nice failure +messages automatically.") + (license license:asl2.0)))) + +(define-public go-github-com-jacobsa-reqtrace + (let ((commit "245c9e0234cb2ad542483a336324e982f1a22934") + (revision "0")) + (package + (name "go-github-com-jacobsa-reqtrace") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/reqtrace") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0zfyijig10896v42rvxka1n4wn6lijqz40y2281187l7mq8vv5jn")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jacobsa/reqtrace")) + (inputs (list + go-golang-org-x-net)) + (home-page "https://github.com/jacobsa/reqtrace") + (synopsis "Simple request tracing framework") + (description + "Package reqtrace contains a very simple request tracing framework.") + (license license:asl2.0)))) + +(define-public go-github-com-pkg-xattr + (package + (name "go-github-com-pkg-xattr") + (version "0.4.9") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pkg/xattr") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qg4zh0d8m4adaiicsd0cpw0w6g8sk01f4jz7jyxgirh1wfcsqyz")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/pkg/xattr")) + (native-inputs (list go-golang-org-x-sys)) + (home-page "https://github.com/pkg/xattr") + (synopsis "Support for extended file system attributes") + (description + "Package xattr provides support for extended attributes on Linux, Darwin and +FreeBSD. Extended attributes are name:value pairs permanently associated with +files or directories. They are similar to the environment strings associated with +a process. An attribute may be defined or undefined. If defined, its value may +be empty or non-empty. You can find more details here: +@@url{https://en.wikipedia.org/wiki/Extended_file_attributes, +https://en.wikipedia.org/wiki/Extended_file_attributes} +.") + (license license:bsd-2))) + +(define-public go-github-com-rfjakob-eme + (package + (name "go-github-com-rfjakob-eme") + (version "1.1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rfjakob/eme") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yrbhvy0337mf12fp8p4sy8ry8r3w2qfdf8val5hj07p2lri0cqk")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/rfjakob/eme")) + (home-page "https://github.com/rfjakob/eme") + (synopsis "EME for Go") + (description + "EME (ECB-Mix-ECB or, clearer, Encrypt-Mix-Encrypt) is a wide-block encryption +mode developed by Halevi and Rogaway.") + (license license:expat))) + +(define-public gocryptfs + (package + (name "gocryptfs") + (version "2.3.0") + (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 + "1lkcx61r93xq21scg98hrvclwwxbli93pqnnck0d08isvhgjd590")))) + (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-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))) base-commit: bb2701b9111a3d82a82ceaaf2b22b51ecd8ac21f prerequisite-patch-id: 26ec5a03b0ac6b2d5b9df1a82b699a3701e62f91 prerequisite-patch-id: 11b4410d3ba809f1cf31d46f3f7fec85d8eab5c0 -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#58768] Patch attached 2022-10-25 0:25 ` [bug#58768] Patch attached Felix Lechner via Guix-patches via @ 2022-10-25 6:30 ` ( via Guix-patches via 2022-10-25 13:39 ` Felix Lechner via Guix-patches via 0 siblings, 1 reply; 15+ messages in thread From: ( via Guix-patches via @ 2022-10-25 6:30 UTC (permalink / raw) To: Felix Lechner, 58768 Hey, On Tue Oct 25, 2022 at 1:25 AM BST, Felix Lechner via Guix-patches via wrote: > Sorry, I meant to attach the patch instead of the file being added. Here it is. You should probably put the Go packages in golang.scm, not gocryptfs.scm, and gocryptfs could perhaps go in file-systems.scm. FYI, although this time a new file is not needed, when you create a new Scheme file in gnu/, you need to add it to gnu/local.mk. -- ( ^ permalink raw reply [flat|nested] 15+ messages in thread
* [bug#58768] Patch attached 2022-10-25 6:30 ` ( via Guix-patches via @ 2022-10-25 13:39 ` Felix Lechner via Guix-patches via 2022-10-25 16:07 ` ( via Guix-patches via 0 siblings, 1 reply; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 13:39 UTC (permalink / raw) To: (; +Cc: 58768 [-- Attachment #1: Type: text/plain, Size: 637 bytes --] Hi, On Mon, Oct 24, 2022 at 11:31 PM ( <paren@disroot.org> wrote: > > You should probably put the Go packages in golang.scm, not gocryptfs.scm, and > gocryptfs could perhaps go in file-systems.scm. Thanks for these hints! The attached patch does so. The patch was rebased for the recent acceptance of one prerequisite, namely Patch#58659. > FYI, although this time a new file is not needed, when you create a new Scheme > file in gnu/, you need to add it to gnu/local.mk. Thanks for that hint too! Oddly, both 'guix build' and 'guix lint' found the variables without it but the new file is gone, anyway. Kind regards Felix Lechner [-- Attachment #2: 0001-gnu-Add-gocryptfs.patch --] [-- Type: application/x-patch, Size: 15227 bytes --] ^ permalink raw reply [flat|nested] 15+ messages in thread
* [bug#58768] Patch attached 2022-10-25 13:39 ` Felix Lechner via Guix-patches via @ 2022-10-25 16:07 ` ( via Guix-patches via 2022-10-27 16:48 ` Felix Lechner via Guix-patches via 0 siblings, 1 reply; 15+ messages in thread From: ( via Guix-patches via @ 2022-10-25 16:07 UTC (permalink / raw) To: Felix Lechner; +Cc: 58768 Heya, On Tue Oct 25, 2022 at 2:39 PM BST, Felix Lechner wrote: > The patch was rebased for the recent acceptance of one prerequisite, > namely Patch#58659. Cool. Shouldn't that have been in this patch series, though? Also, it's better to use the procedure described here and in the manual's Contributing section for sending patches, rather than sending them as attachments; it makes them much easier to reply to: <https://issues.guix.gnu.org/58648#1> By the way, each package should be in its own patch, not one mega-patch. > Thanks for that hint too! Oddly, both 'guix build' and 'guix lint' > found the variables without it but the new file is gone, anyway. They will find it, but you won't be able to compile the file with ``make'', so ``guix pull'' won't be able to compile it (which it does to make loading faster). -- ( ^ permalink raw reply [flat|nested] 15+ messages in thread
* [bug#58768] Patch attached 2022-10-25 16:07 ` ( via Guix-patches via @ 2022-10-27 16:48 ` Felix Lechner via Guix-patches via 0 siblings, 0 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-27 16:48 UTC (permalink / raw) To: (; +Cc: 58768 Hi, On Tue, Oct 25, 2022 at 9:18 AM ( <paren@disroot.org> wrote: > > Shouldn't that have been in this patch series, though? I think it would have been an error. Someone else may desire an update to the same existing package. By filing it under a separate bug, I can save the other person the work. They can simply declare the same blocking bug. > Also, it's > better to use the procedure described here and in the manual's Contributing > section for sending patches, > > By the way, each package should be in its own patch, not one mega-patch. Already done, above. Thanks! Kind regards Felix Lechner ^ permalink raw reply [flat|nested] 15+ messages in thread
* [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2. 2022-10-25 0:23 [bug#58768] [PATCH] gnu: Add gocryptfs Felix Lechner via Guix-patches via 2022-10-25 0:25 ` [bug#58768] Patch attached Felix Lechner via Guix-patches via @ 2022-10-25 19:27 ` Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 2/9] gnu: Add go-github-com-jacobsa-crypto Felix Lechner via Guix-patches via ` (7 more replies) 1 sibling, 8 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 19:27 UTC (permalink / raw) To: 58768; +Cc: (, Felix Lechner * gnu/packages/golang.scm (go-github-com-hanwen-go-fuse-v2): New variable. --- gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d9b1b084b6..1121674d20 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1142,6 +1142,34 @@ (define-public go-github-com-operatorfoundation-shapeshifter-transports networks where it would otherwise be blocked or heavily throttled.") (license license:expat))) +(define-public go-github-com-hanwen-go-fuse-v2 + (let ((commit "4c25c9c1eecefb8beeea3daddf3486eb1dd48b89") + (revision "0")) + (package + (name "go-github-com-hanwen-go-fuse-v2") + (version (git-version "2.1.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hanwen/go-fuse") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0hi3x963bj9hcngyy2ba3mipcqx5gwqvcj7vg1r4vlal2qbsqcmf")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/hanwen/go-fuse/v2")) + (native-inputs (list + go-golang-org-x-sys + go-golang-org-x-sync + go-github-com-kylelemons-godebug)) + (home-page "https://github.com/hanwen/go-fuse") + (synopsis "Go bindings for FUSE filesystems") + (description + "This is a repository containing Go bindings for writing FUSE file systems.") + (license license:bsd-3)))) + (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") base-commit: 348f70b9f429b19df6251a2c177291f4c606a495 prerequisite-patch-id: 11b4410d3ba809f1cf31d46f3f7fec85d8eab5c0 -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#58768] [PATCH 2/9] gnu: Add go-github-com-jacobsa-crypto. 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via @ 2022-10-25 19:27 ` Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 3/9] gnu: Add go-github-com-jacobsa-oglematchers Felix Lechner via Guix-patches via ` (6 subsequent siblings) 7 siblings, 0 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 19:27 UTC (permalink / raw) To: 58768; +Cc: (, Felix Lechner * gnu/packages/golang.scm (go-github-com-jacobsa-crypto): New variable. --- gnu/packages/golang.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 1121674d20..35d6d0d329 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1170,6 +1170,37 @@ (define-public go-github-com-hanwen-go-fuse-v2 "This is a repository containing Go bindings for writing FUSE file systems.") (license license:bsd-3)))) +(define-public go-github-com-jacobsa-crypto + (let ((commit "9f44e2d11115452dad8f404f029574422855f46a") + (revision "0")) + (package + (name "go-github-com-jacobsa-crypto") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/crypto") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "18c3cx8izxdajq22zdq0n19j9d2l6iickd3mz39j5h96kw7l5qmy")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/jacobsa/crypto" + ;; Source-only package. + #:tests? #f + #:phases + #~(modify-phases %standard-phases + ;; Source-only package. + (delete 'build)))) + (home-page "https://github.com/jacobsa/crypto") + (synopsis "Cryptography missing from the Go standard library") + (description + "This repository contains Go packages related to cryptographic standards that are +not included in the Go standard library.") + (license license:asl2.0)))) + (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#58768] [PATCH 3/9] gnu: Add go-github-com-jacobsa-oglematchers. 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 2/9] gnu: Add go-github-com-jacobsa-crypto Felix Lechner via Guix-patches via @ 2022-10-25 19:27 ` Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 4/9] gnu: Add go-github-com-jacobsa-oglemock Felix Lechner via Guix-patches via ` (5 subsequent siblings) 7 siblings, 0 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 19:27 UTC (permalink / raw) To: 58768; +Cc: (, Felix Lechner * gnu/packages/golang.scm (go-github-com-jacobsa-oglematchers): New variable. --- gnu/packages/golang.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 35d6d0d329..ea1043165b 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1201,6 +1201,34 @@ (define-public go-github-com-jacobsa-crypto not included in the Go standard library.") (license license:asl2.0)))) +(define-public go-github-com-jacobsa-oglematchers + (let ((commit "141901ea67cd4769c6800aa7bfdfc558fa22bda5") + (revision "0")) + (package + (name "go-github-com-jacobsa-oglematchers") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/oglematchers") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "09ff5x6vbhd9zl1z4yzyk573ifh16rry38q1rx986kbz4hqkmniq")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jacobsa/oglematchers" + ;; break loop with with go-github-com-jacobsa-ogletest + #:tests? #f)) + (home-page "https://github.com/jacobsa/oglematchers") + (synopsis "Matchers for Go testing framework") + (description + "Package oglematchers provides a set of matchers useful in a testing or mocking +framework. These matchers are inspired by and mostly compatible with Google +Test for C++ and Google JS Test.") + (license license:asl2.0)))) + (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#58768] [PATCH 4/9] gnu: Add go-github-com-jacobsa-oglemock. 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 2/9] gnu: Add go-github-com-jacobsa-crypto Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 3/9] gnu: Add go-github-com-jacobsa-oglematchers Felix Lechner via Guix-patches via @ 2022-10-25 19:27 ` Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 5/9] gnu: Add go-github-com-jacobsa-ogletest Felix Lechner via Guix-patches via ` (4 subsequent siblings) 7 siblings, 0 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 19:27 UTC (permalink / raw) To: 58768; +Cc: (, Felix Lechner * gnu/packages/golang.scm (go-github-com-jacobsa-oglemock): New variable. --- gnu/packages/golang.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index ea1043165b..d8ba7876fa 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1229,6 +1229,35 @@ (define-public go-github-com-jacobsa-oglematchers Test for C++ and Google JS Test.") (license license:asl2.0)))) +(define-public go-github-com-jacobsa-oglemock + (let ((commit "e94d794d06ffc6de42cb19d0dab3c219efdd6dcf") + (revision "0")) + (package + (name "go-github-com-jacobsa-oglemock") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/oglemock") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14yxf8ykwdwkcccksl6741xgzcf8qykyi58kp4maxpgscqhdl8rq")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jacobsa/oglemock" + ;; break loop with with go-github-com-jacobsa-ogletest + #:tests? #f)) + (native-inputs (list + go-github-com-jacobsa-oglematchers)) + (home-page "https://github.com/jacobsa/oglemock") + (synopsis "Mocking framework for unit tests") + (description + "Package oglemock provides a mocking framework for unit tests.") + (license license:asl2.0)))) + (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#58768] [PATCH 5/9] gnu: Add go-github-com-jacobsa-ogletest. 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via ` (2 preceding siblings ...) 2022-10-25 19:27 ` [bug#58768] [PATCH 4/9] gnu: Add go-github-com-jacobsa-oglemock Felix Lechner via Guix-patches via @ 2022-10-25 19:27 ` Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 6/9] gnu: Add go-github-com-jacobsa-reqtrace Felix Lechner via Guix-patches via ` (3 subsequent siblings) 7 siblings, 0 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 19:27 UTC (permalink / raw) To: 58768; +Cc: (, Felix Lechner * gnu/packages/golang.scm (go-github-com-jacobsa-ogletest): New variable. --- gnu/packages/golang.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index d8ba7876fa..9652a23b0c 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1258,6 +1258,41 @@ (define-public go-github-com-jacobsa-oglemock "Package oglemock provides a mocking framework for unit tests.") (license license:asl2.0)))) +(define-public go-github-com-jacobsa-ogletest + (let ((commit "80d50a735a1108a2aeb7abc4a988d183f20c5292") + (revision "0")) + (package + (name "go-github-com-jacobsa-ogletest") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/ogletest") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lbwbxzr75g65q07ry5k4kglxqs3ym7xkvqznzm55rm3qk76v83r")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jacobsa/ogletest" + ;; These tests should be made working + #:tests? #f)) + (native-inputs (list + go-github-com-jacobsa-oglematchers + go-github-com-jacobsa-oglemock + go-github-com-jacobsa-reqtrace + go-golang-org-x-net)) + (home-page "https://github.com/jacobsa/ogletest") + (synopsis "Expressive unit tests") + (description + "Package ogletest provides a framework for writing expressive unit tests. It +integrates with the builtin testing package, so it works with the gotest +command. Unlike the testing package which offers only basic capabilities for +signalling failures, it offers ways to express expectations and get nice failure +messages automatically.") + (license license:asl2.0)))) + (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#58768] [PATCH 6/9] gnu: Add go-github-com-jacobsa-reqtrace. 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via ` (3 preceding siblings ...) 2022-10-25 19:27 ` [bug#58768] [PATCH 5/9] gnu: Add go-github-com-jacobsa-ogletest Felix Lechner via Guix-patches via @ 2022-10-25 19:27 ` Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 7/9] gnu: Add go-github-com-pkg-xattr Felix Lechner via Guix-patches via ` (2 subsequent siblings) 7 siblings, 0 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 19:27 UTC (permalink / raw) To: 58768; +Cc: (, Felix Lechner * gnu/packages/golang.scm (go-github-com-jacobsa-reqtrace): New variable. --- gnu/packages/golang.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 9652a23b0c..5828e4d631 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1293,6 +1293,32 @@ (define-public go-github-com-jacobsa-ogletest messages automatically.") (license license:asl2.0)))) +(define-public go-github-com-jacobsa-reqtrace + (let ((commit "245c9e0234cb2ad542483a336324e982f1a22934") + (revision "0")) + (package + (name "go-github-com-jacobsa-reqtrace") + (version (git-version "0.0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jacobsa/reqtrace") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0zfyijig10896v42rvxka1n4wn6lijqz40y2281187l7mq8vv5jn")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/jacobsa/reqtrace")) + (inputs (list + go-golang-org-x-net)) + (home-page "https://github.com/jacobsa/reqtrace") + (synopsis "Simple request tracing framework") + (description + "Package reqtrace contains a very simple request tracing framework.") + (license license:asl2.0)))) + (define-public go-github-com-kataras-golog (package (name "go-github-com-kataras-golog") -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#58768] [PATCH 7/9] gnu: Add go-github-com-pkg-xattr. 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via ` (4 preceding siblings ...) 2022-10-25 19:27 ` [bug#58768] [PATCH 6/9] gnu: Add go-github-com-jacobsa-reqtrace Felix Lechner via Guix-patches via @ 2022-10-25 19:27 ` Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 8/9] gnu: Add go-github-com-rfjakob-eme Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 9/9] gnu: Add gocryptfs Felix Lechner via Guix-patches via 7 siblings, 0 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 19:27 UTC (permalink / raw) To: 58768; +Cc: (, Felix Lechner * gnu/packages/golang.scm (go-github-com-pkg-xattr): New variable. --- gnu/packages/golang.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 5828e4d631..97e1a806f4 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1390,6 +1390,36 @@ (define-public go-github-com-kortschak-utter aid data snapshotting.") (license license:isc))) +(define-public go-github-com-pkg-xattr + (package + (name "go-github-com-pkg-xattr") + (version "0.4.9") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pkg/xattr") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qg4zh0d8m4adaiicsd0cpw0w6g8sk01f4jz7jyxgirh1wfcsqyz")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/pkg/xattr")) + (native-inputs (list go-golang-org-x-sys)) + (home-page "https://github.com/pkg/xattr") + (synopsis "Support for extended file system attributes") + (description + "Package xattr provides support for extended attributes on Linux, Darwin and +FreeBSD. Extended attributes are name:value pairs permanently associated with +files or directories. They are similar to the environment strings associated with +a process. An attribute may be defined or undefined. If defined, its value may +be empty or non-empty. You can find more details here: +@@url{https://en.wikipedia.org/wiki/Extended_file_attributes, +https://en.wikipedia.org/wiki/Extended_file_attributes} +.") + (license license:bsd-2))) + (define-public go-github-com-shadowsocks-go-shadowsocks2 (package (name "go-github-com-shadowsocks-go-shadowsocks2") -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#58768] [PATCH 8/9] gnu: Add go-github-com-rfjakob-eme. 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via ` (5 preceding siblings ...) 2022-10-25 19:27 ` [bug#58768] [PATCH 7/9] gnu: Add go-github-com-pkg-xattr Felix Lechner via Guix-patches via @ 2022-10-25 19:27 ` Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 9/9] gnu: Add gocryptfs Felix Lechner via Guix-patches via 7 siblings, 0 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 19:27 UTC (permalink / raw) To: 58768; +Cc: (, Felix Lechner * gnu/packages/golang.scm (go-github-com-rfjakob-eme): 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 97e1a806f4..58402db873 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1420,6 +1420,29 @@ (define-public go-github-com-pkg-xattr .") (license license:bsd-2))) +(define-public go-github-com-rfjakob-eme + (package + (name "go-github-com-rfjakob-eme") + (version "1.1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rfjakob/eme") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yrbhvy0337mf12fp8p4sy8ry8r3w2qfdf8val5hj07p2lri0cqk")))) + (build-system go-build-system) + (arguments + '(#:import-path "github.com/rfjakob/eme")) + (home-page "https://github.com/rfjakob/eme") + (synopsis "EME for Go") + (description + "EME (ECB-Mix-ECB or, clearer, Encrypt-Mix-Encrypt) is a wide-block encryption +mode developed by Halevi and Rogaway.") + (license license:expat))) + (define-public go-github-com-shadowsocks-go-shadowsocks2 (package (name "go-github-com-shadowsocks-go-shadowsocks2") -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
* [bug#58768] [PATCH 9/9] gnu: Add gocryptfs. 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via ` (6 preceding siblings ...) 2022-10-25 19:27 ` [bug#58768] [PATCH 8/9] gnu: Add go-github-com-rfjakob-eme Felix Lechner via Guix-patches via @ 2022-10-25 19:27 ` Felix Lechner via Guix-patches via 7 siblings, 0 replies; 15+ messages in thread From: Felix Lechner via Guix-patches via @ 2022-10-25 19:27 UTC (permalink / raw) To: 58768; +Cc: (, Felix Lechner * gnu/packages/file-systems.scm (gocryptfs): New variable. --- 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 4b1c1cebe8..3fe68ca313 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -422,6 +422,80 @@ (define-public fstransform (license (list license:gpl2 ; fsattr/src/e4attr.* → sbin/fsattr license:gpl3+)))) ; the rest +(define-public gocryptfs + (package + (name "gocryptfs") + (version "2.3.0") + (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 + "1lkcx61r93xq21scg98hrvclwwxbli93pqnnck0d08isvhgjd590")))) + (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-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") -- 2.38.0 ^ permalink raw reply related [flat|nested] 15+ messages in thread
end of thread, other threads:[~2022-10-27 16:51 UTC | newest] Thread overview: 15+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-10-25 0:23 [bug#58768] [PATCH] gnu: Add gocryptfs Felix Lechner via Guix-patches via 2022-10-25 0:25 ` [bug#58768] Patch attached Felix Lechner via Guix-patches via 2022-10-25 6:30 ` ( via Guix-patches via 2022-10-25 13:39 ` Felix Lechner via Guix-patches via 2022-10-25 16:07 ` ( via Guix-patches via 2022-10-27 16:48 ` Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 1/9] gnu: Add go-github-com-hanwen-go-fuse-v2 Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 2/9] gnu: Add go-github-com-jacobsa-crypto Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 3/9] gnu: Add go-github-com-jacobsa-oglematchers Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 4/9] gnu: Add go-github-com-jacobsa-oglemock Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 5/9] gnu: Add go-github-com-jacobsa-ogletest Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 6/9] gnu: Add go-github-com-jacobsa-reqtrace Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 7/9] gnu: Add go-github-com-pkg-xattr Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 8/9] gnu: Add go-github-com-rfjakob-eme Felix Lechner via Guix-patches via 2022-10-25 19:27 ` [bug#58768] [PATCH 9/9] gnu: Add gocryptfs Felix Lechner 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).