2021-02-05 17:12:51 +00:00
|
|
|
|
{ fetchurl, lib, stdenv, zlib, bzip2, libgcrypt
|
2020-04-24 23:36:52 +00:00
|
|
|
|
, gdbm, gperf, tdb, gnutls, db, libuuid
|
2021-02-05 17:12:51 +00:00
|
|
|
|
, lzo, pkg-config, guile, rpcsvc-proto, libtirpc
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
name = "libchop-0.5.2";
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "mirror://savannah/libchop/${name}.tar.gz";
|
|
|
|
|
sha256 = "0fpdyxww41ba52d98blvnf543xvirq1v9xz1i3x1gm9lzlzpmc2g";
|
|
|
|
|
};
|
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
|
patches = [ ./gets-undeclared.patch ./size_t.patch ./0001-Fix-RPC-compilation-when-using-libtirpc-rather-than-.patch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
|
nativeBuildInputs = [ pkg-config gperf rpcsvc-proto ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-I${libtirpc.dev}/include/tirpc" ];
|
|
|
|
|
NIX_LDFLAGS = [ "-ltirpc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
|
[ zlib bzip2 lzo
|
|
|
|
|
libgcrypt
|
|
|
|
|
gdbm db tdb
|
|
|
|
|
gnutls libuuid
|
2020-10-16 20:44:37 +00:00
|
|
|
|
guile libtirpc
|
2020-04-24 23:36:52 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
|
sed -re 's%@GUILE@%&/guile%' -i */Makefile.* Makefile.*
|
|
|
|
|
'';
|
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "Tools & library for data backup and distributed storage";
|
|
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
|
'' Libchop is a set of utilities and library for data backup and
|
|
|
|
|
distributed storage. Its main application is chop-backup, an
|
|
|
|
|
encrypted backup program that supports data integrity checks,
|
|
|
|
|
versioning at little cost, distribution among several sites,
|
|
|
|
|
selective sharing of stored data, adaptive compression, and more.
|
|
|
|
|
The library itself, which chop-backup builds upon, implements
|
|
|
|
|
storage techniques such as content-based addressing, content hash
|
|
|
|
|
keys, Merkle trees, similarity detection, and lossless compression.
|
|
|
|
|
It makes it easy to combine them in different ways. The
|
|
|
|
|
‘chop-archiver’ and ‘chop-block-server’ tools, illustrated in the
|
|
|
|
|
manual, provide direct access to these facilities from the command
|
|
|
|
|
line. It is written in C and has Guile (Scheme) bindings.
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
homepage = "https://www.nongnu.org/libchop/";
|
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
|
platforms = platforms.gnu ++ platforms.linux;
|
|
|
|
|
};
|
|
|
|
|
}
|