2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, perl }:
|
2013-12-30 13:21:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-14 08:42:16 +00:00
|
|
|
version = "0.4";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "chunksync";
|
2013-12-30 13:21:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://chunksync.florz.de/chunksync_${version}.tar.gz";
|
2018-03-14 08:42:16 +00:00
|
|
|
sha256 = "1gwqp1kjwhcmwhynilakhzpzgc0c6kk8c9vkpi30gwwrwpz3cf00";
|
2013-12-30 13:21:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [openssl perl];
|
|
|
|
|
2014-01-02 16:37:51 +00:00
|
|
|
NIX_LDFLAGS = "-lgcc_s";
|
|
|
|
|
2013-12-30 13:21:52 +00:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://chunksync.florz.de/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = with lib.platforms; linux;
|
2013-12-30 13:21:52 +00:00
|
|
|
};
|
|
|
|
}
|