2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.4";
|
|
|
|
pname = "chunksync";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://chunksync.florz.de/chunksync_${version}.tar.gz";
|
|
|
|
sha256 = "1gwqp1kjwhcmwhynilakhzpzgc0c6kk8c9vkpi30gwwrwpz3cf00";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [openssl perl];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lgcc_s";
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
"PREFIX="
|
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Space-efficient incremental backups of large files or block devices";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "chunksync";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://chunksync.florz.de/";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|