gnu: Add go-github-com-edsrzf-mmap-go.
[jackhill/guix/guix.git] / gnu / packages / syncthing.scm
CommitLineData
56a37713
LF
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2016 Petter <petter@mykolab.ch>
3;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages syncthing)
21 #:use-module (guix build-system go)
22 #:use-module (guix packages)
23 #:use-module (guix git-download)
24 #:use-module (guix licenses))
25
26(define-public go-github-com-audriusbutkevicius-go-nat-pmp
27 (let ((commit "452c97607362b2ab5a7839b8d1704f0396b640ca")
28 (revision "0"))
29 (package
30 (name "go-github-com-audriusbutkevicius-go-nat-pmp")
31 (version (git-version "0.0.0" revision commit))
32 (source (origin
33 (method git-fetch)
34 (uri (git-reference
35 (url "https://github.com/AudriusButkevicius/go-nat-pmp")
36 (commit commit)))
37 (file-name (git-file-name name version))
38 (sha256
39 (base32 "1accmpl1llk16a19nlyy991fqrgfay6l53gb64hgmdfmqljdvbk7"))))
40 (build-system go-build-system)
41 (arguments
42 `(#:import-path "github.com/AudriusButkevicius/go-nat-pmp"))
43 (synopsis "Port mapping and discovery of external IP address")
44 (description "This packages provides a Go client for the NAT-PMP internet
45protocol for port mapping and discovering the external IP address of a
46firewall.")
47 (home-page "https://github.com/AudriusButkevicius/go-nat-pmp")
48 (license asl2.0))))
67b46818
LF
49
50(define-public go-github-com-bkaradzic-go-lz4
51 (let ((commit "7224d8d8f27ef618c0a95f1ae69dbb0488abc33a")
52 (revision "0"))
53 (package
54 (name "go-github-com-bkaradzic-go-lz4")
55 (version (git-version "0.0.0" revision commit))
56 (source (origin
57 (method git-fetch)
58 (uri (git-reference
59 (url "https://github.com/bkaradzic/go-lz4")
60 (commit commit)))
61 (file-name (git-file-name name version))
62 (sha256
63 (base32
64 "10lmya17vdqg2pvqni0p73iahni48s1v11ya9a0hcz4jh5vw4dkb"))))
65 (build-system go-build-system)
66 (arguments
67 `(#:import-path "github.com/bkaradzic/go-lz4"))
68 (synopsis "LZ4 compression algorithm")
69 (description "This package provides @code{go-lz4}, a Go implementation of
70the LZ4 compression algorithm.")
71 (home-page "https://github.com/bkaradzic/go-lz4")
72 (license bsd-2))))
add56f34
LF
73
74(define-public go-github-com-calmh-du
75 (package
76 (name "go-github-com-calmh-du")
77 (version "1.0.1")
78 (source (origin
79 (method git-fetch)
80 (uri (git-reference
81 (url "https://github.com/calmh/du")
82 (commit (string-append "v" version))))
83 (file-name (git-file-name name version))
84 (sha256
85 (base32
86 "0qb3a6y3p9nkyn3s66k6zcm16y8n8578qh23ddj14cxf2scrr2n2"))))
87 (build-system go-build-system)
88 (arguments
89 `(#:import-path "github.com/calmh/du"))
90 (synopsis "Get total and available disk space of a given volume")
91 (description "This is a Go implementation of `du`. It provides disk usage
92information, such as how much storage space is available, free, and used.")
93 (home-page "https://github.com/calmh/du")
94 (license public-domain)))
1e28085e
LF
95
96(define-public go-github-com-calmh-xdr
97 (let ((commit "08e072f9cb164f943a92eb59f90f3abc64ac6e8f")
98 (revision "0"))
99 (package
100 (name "go-github-com-calmh-xdr")
101 (version (git-version "2.0.1" revision commit))
102 (source (origin
103 (method git-fetch)
104 (uri (git-reference
105 (url "https://github.com/calmh/xdr")
106 (commit commit)))
107 (file-name (git-file-name name version))
108 (sha256
109 (base32
110 "072wqdncz3nd4a3zkhvzzx1y3in1lm29wfvl0d8wrnqs5pyqh0mh"))))
111 (build-system go-build-system)
112 (arguments
113 `(#:import-path "github.com/calmh/xdr"))
114 (synopsis "XDR marshalling and unmarshalling")
115 (description "XDR is an External Data Representation (XDR)
116marshalling and unmarshalling library in Go. It uses code generation and not
117reflection.")
118 (home-page "https://github.com/calmh/xdr")
119 (license expat))))
ab3e1589
LF
120
121(define-public go-github-com-d4l3k-messagediff
122 (let ((commit "29f32d820d112dbd66e58492a6ffb7cc3106312b")
123 (revision "0"))
124 (package
125 (name "go-github-com-d4l3k-messagediff")
126 (version (git-version "1.1.0" revision commit))
127 (source (origin
128 (method git-fetch)
129 (uri (git-reference
130 (url "https://github.com/d4l3k/messagediff")
131 (commit commit)))
132 (file-name (git-file-name name version))
133 (sha256
134 (base32
135 "104hl8x57ciaz7mzafg1vp9qggxcyfm8hsv9bmlihbz9ml3nyr8v"))))
136 (build-system go-build-system)
137 (arguments
138 `(#:import-path "github.com/d4l3k/messagediff"))
139 (synopsis "Diff arbitrary Go structs")
140 (description "Messagediff is a library for calculating diffs of arbitrary
141structs in the Go programming language.")
142 (home-page "https://github.com/d4l3k/messagediff")
143 (license expat))))
a3a5b012
LF
144
145(define-public go-github-com-edsrzf-mmap-go
146 (let ((commit "0bce6a6887123b67a60366d2c9fe2dfb74289d2e")
147 (revision "0"))
148 (package
149 (name "go-github-com-edsrzf-mmap-go")
150 (version (git-version "0.0.0" revision commit))
151 (source (origin
152 (method git-fetch)
153 (uri (git-reference
154 (url "https://github.com/edsrzf/mmap-go")
155 (commit commit)))
156 (file-name (git-file-name name version))
157 (sha256
158 (base32
159 "1am4m2k451bksnbiqj6lxknk4lsgmrhv0q3ajqac818vj0cpfgs9"))))
160 (build-system go-build-system)
161 (arguments
162 `(#:import-path "github.com/edsrzf/mmap-go"))
163 (synopsis "Go implementation of mmap")
164 (description "This packages provides a Go implementation of mmap.")
165 (home-page "https://github.com/edsrzf/mmap-go")
166 (license bsd-3))))