guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

31/62: gnu: Add go-golang-org-x-crypto-pbkdf2.


From: Leo Famulari
Subject: 31/62: gnu: Add go-golang-org-x-crypto-pbkdf2.
Date: Thu, 12 Oct 2017 21:43:40 -0400 (EDT)

lfam pushed a commit to branch master
in repository guix.

commit b65620b6d2383ef8a283a846a38c86db29aee3c4
Author: Leo Famulari <address@hidden>
Date:   Wed Oct 11 20:04:07 2017 -0400

    gnu: Add go-golang-org-x-crypto-pbkdf2.
    
    * gnu/packages/syncthing.scm (go-golang-org-x-crypto-pbkdf2): New variable.
---
 gnu/packages/syncthing.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/syncthing.scm b/gnu/packages/syncthing.scm
index add7b71..95d1f36 100644
--- a/gnu/packages/syncthing.scm
+++ b/gnu/packages/syncthing.scm
@@ -762,6 +762,43 @@ symmetric-key block cipher.")
       (home-page "https://go.googlesource.com/crypto/";)
       (license bsd-3))))
 
+(define-public go-golang-org-x-crypto-pbkdf2
+  (let ((commit "c78caca803c95773f48a844d3dcab04b9bc4d6dd")
+        (revision "0"))
+    (package
+      (name "go-golang-org-x-crypto-pbkdf2")
+      (version (git-version "0.0.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://go.googlesource.com/crypto";)
+                      (commit commit)))
+                (file-name (string-append "go.googlesource.com-crypto-"
+                                          version "-checkout"))
+                (sha256
+                 (base32
+                  "0vxlfxr9y681yn2cfh6dbqmq35vvq4f45ay0mm31ffkny9cms0y4"))))
+      (build-system go-build-system)
+      (arguments
+       `(#:import-path "golang.org/x/crypto/pbkdf2"
+         #:unpack-path "golang.org/x/crypto"
+         #:phases
+         (modify-phases %standard-phases
+           (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable
+             (lambda* (#:key outputs #:allow-other-keys)
+               (map (lambda (file)
+                      (make-file-writable file))
+                    (find-files
+                      (string-append (assoc-ref outputs "out")
+                                     
"/src/golang.org/x/crypto/ed25519/testdata")
+                      ".*\\.gz$"))
+               #t)))))
+      (synopsis "PBKDF2 in Go")
+      (description "This package provides a Go implementation of the PBKDF2 key
+derivation function.")
+      (home-page "https://go.googlesource.com/crypto/";)
+      (license bsd-3))))
+
 (define-public go-golang-org-x-sys-unix
   (let ((commit "f3918c30c5c2cb527c0b071a27c35120a6c0719a")
         (revision "0"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]