1{ stdenv, fetchurl, openssl, perl }:
2
3stdenv.mkDerivation rec {
4 version = "0.4";
5 name = "chunksync-${version}";
6
7 src = fetchurl {
8 url = "https://chunksync.florz.de/chunksync_${version}.tar.gz";
9 sha256 = "1gwqp1kjwhcmwhynilakhzpzgc0c6kk8c9vkpi30gwwrwpz3cf00";
10 };
11
12 buildInputs = [openssl perl];
13
14 NIX_LDFLAGS = "-lgcc_s";
15
16 makeFlags = [
17 "DESTDIR=$(out)"
18 "PREFIX="
19 ];
20
21 preInstall = ''
22 mkdir -p $out/bin
23 mkdir -p $out/share/man/man1
24 '';
25
26 meta = {
27 description = "Space-efficient incremental backups of large files or block devices";
28 homepage = http://chunksync.florz.de/;
29 license = stdenv.lib.licenses.gpl2;
30 platforms = with stdenv.lib.platforms; linux;
31 };
32}