2013-12-30 13:21:52 +00:00
|
|
|
{ stdenv, fetchurl, openssl, perl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.3";
|
|
|
|
name = "chunksync-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://chunksync.florz.de/chunksync_${version}.tar.gz";
|
|
|
|
sha256 = "e0c27f925c5cf811798466312a56772864b633728c433fb2fcce23c8712b52fc";
|
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
homepage = "http://chunksync.florz.de/";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-12-30 13:21:52 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|