guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: ipfs-go-ipfs-cmdkit (DRAFT)


From: Pierre Neidhardt
Subject: 02/03: gnu: ipfs-go-ipfs-cmdkit (DRAFT)
Date: Wed, 17 Oct 2018 12:57:11 -0400 (EDT)

ambrevar pushed a commit to branch wip-ipfs
in repository guix.

commit f26c3ac936434c4bccff352eac0cf688f9085ffd
Author: Pierre Neidhardt <address@hidden>
Date:   Wed Oct 17 15:39:12 2018 +0200

    gnu: ipfs-go-ipfs-cmdkit (DRAFT)
---
 gnu/packages/ipfs.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/ipfs.scm b/gnu/packages/ipfs.scm
index 88afa8e..e40002e 100644
--- a/gnu/packages/ipfs.scm
+++ b/gnu/packages/ipfs.scm
@@ -21,11 +21,36 @@
   #:use-module (guix packages)
   ;; #:use-module (guix download)
   #:use-module (guix git-download)
+  #:use-module (guix gx-download)
   #:use-module (guix build-system go)
   ;; #:use-module (guix build-system python)
   ;; #:use-module (gnu packages)
   #:use-module (gnu packages golang))
 
+(define-public ipfs-go-ipfs-cmdkit
+  (let ((ipfs-hash "QmSP88ryZkHSRn1fnngAaV2Vcn63WUJzAavnRM9CVdU1Ky"))
+    (package
+      (name "ipfs-go-ipfs-cmdkit")
+      (version (gx-version "1.1.3" "1" ipfs-hash))
+      (source
+       (origin
+         (method gx-fetch)
+         (uri (gx-reference (hash ipfs-hash)))
+         (file-name (gx-file-name name version))
+         (sha256
+          (base32
+           "0qk6fshgdmhp8dip2ksm13j6nywi41m9mn0czkvmw6b697z85l2r"))))
+      (build-system go-build-system)
+      (arguments
+       `(#:unpack-path ,(string-append "gx/ipfs/" ipfs-hash "/go-ipfs-config")
+         #:import-path ,(string-append "gx/ipfs/" ipfs-hash 
"/go-ipfs-config")))
+      (home-page
+       "https://github.com/ipfs/go-ipfs-cmdkit";)
+      (synopsis "Shared types, functions and values for go-ipfs")
+      (description "@command{cmdkit} offers some types, functions and values
+that are shared between @command{go-ipfs/commands} and its rewrite 
@command{go-ipfs-cmds}.")
+      (license license:expat))))
+
 (define-public go-github-com-ipfs-go-ipfs-cmdkit-files
   (let ((commit
           "386fcf8f18a185ec121676665fe2d9574496048d")



reply via email to

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