1{ fetchurl, stdenv, zlib, bzip2, libgcrypt
2, gdbm, gperf, tdb, gnutls, db, libuuid
3, lzo, pkgconfig, guile
4}:
5
6stdenv.mkDerivation rec {
7 name = "libchop-0.5.2";
8
9 src = fetchurl {
10 url = "mirror://savannah/libchop/${name}.tar.gz";
11 sha256 = "0fpdyxww41ba52d98blvnf543xvirq1v9xz1i3x1gm9lzlzpmc2g";
12 };
13
14 patches = [ ./gets-undeclared.patch ./size_t.patch ];
15
16 nativeBuildInputs = [ pkgconfig gperf ];
17
18 buildInputs =
19 [ zlib bzip2 lzo
20 libgcrypt
21 gdbm db tdb
22 gnutls libuuid
23 guile
24 ];
25
26 doCheck = false;
27
28 preConfigure = ''
29 sed -re 's%@GUILE@%&/guile%' -i */Makefile.* Makefile.*
30 '';
31
32 meta = with stdenv.lib; {
33 description = "Tools & library for data backup and distributed storage";
34
35 longDescription =
36 '' Libchop is a set of utilities and library for data backup and
37 distributed storage. Its main application is chop-backup, an
38 encrypted backup program that supports data integrity checks,
39 versioning at little cost, distribution among several sites,
40 selective sharing of stored data, adaptive compression, and more.
41 The library itself, which chop-backup builds upon, implements
42 storage techniques such as content-based addressing, content hash
43 keys, Merkle trees, similarity detection, and lossless compression.
44 It makes it easy to combine them in different ways. The
45 ‘chop-archiver’ and ‘chop-block-server’ tools, illustrated in the
46 manual, provide direct access to these facilities from the command
47 line. It is written in C and has Guile (Scheme) bindings.
48 '';
49
50 homepage = http://nongnu.org/libchop/;
51 license = licenses.gpl3Plus;
52 maintainers = with maintainers; [ viric ];
53 platforms = platforms.gnu;
54 };
55}