After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build a08b3a4d19.tar.gz \
--argstr baseRev 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
result/bin/apply-formatting $NIXPKGS_PATH
89 lines
2.0 KiB
Nix
89 lines
2.0 KiB
Nix
{
|
||
fetchurl,
|
||
lib,
|
||
stdenv,
|
||
zlib,
|
||
bzip2,
|
||
libgcrypt,
|
||
gdbm,
|
||
gperf,
|
||
tdb,
|
||
gnutls,
|
||
db,
|
||
libuuid,
|
||
lzo,
|
||
pkg-config,
|
||
guile,
|
||
rpcsvc-proto,
|
||
libtirpc,
|
||
}:
|
||
|
||
stdenv.mkDerivation rec {
|
||
pname = "libchop";
|
||
version = "0.5.2";
|
||
|
||
src = fetchurl {
|
||
url = "mirror://savannah/libchop/libchop-${version}.tar.gz";
|
||
sha256 = "0fpdyxww41ba52d98blvnf543xvirq1v9xz1i3x1gm9lzlzpmc2g";
|
||
};
|
||
|
||
patches = [
|
||
./gets-undeclared.patch
|
||
./size_t.patch
|
||
./0001-Fix-RPC-compilation-when-using-libtirpc-rather-than-.patch
|
||
];
|
||
|
||
nativeBuildInputs = [
|
||
pkg-config
|
||
gperf
|
||
rpcsvc-proto
|
||
];
|
||
|
||
env.NIX_CFLAGS_COMPILE = toString [ "-I${libtirpc.dev}/include/tirpc" ];
|
||
NIX_LDFLAGS = [ "-ltirpc" ];
|
||
|
||
buildInputs = [
|
||
zlib
|
||
bzip2
|
||
lzo
|
||
libgcrypt
|
||
gdbm
|
||
db
|
||
tdb
|
||
gnutls
|
||
libuuid
|
||
guile
|
||
libtirpc
|
||
];
|
||
|
||
doCheck = false;
|
||
|
||
preConfigure = ''
|
||
sed -re 's%@GUILE@%&/guile%' -i */Makefile.* Makefile.*
|
||
'';
|
||
|
||
meta = with lib; {
|
||
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 = [ ];
|
||
platforms = platforms.gnu ++ platforms.linux;
|
||
};
|
||
}
|