at v192 730 B view raw
1{ stdenv, fetchurl, openssl, perl }: 2 3stdenv.mkDerivation rec { 4 version = "0.3"; 5 name = "chunksync-${version}"; 6 7 src = fetchurl { 8 url = "http://chunksync.florz.de/chunksync_${version}.tar.gz"; 9 sha256 = "e0c27f925c5cf811798466312a56772864b633728c433fb2fcce23c8712b52fc"; 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}