2010-01-05 04:29:58 -08:00
|
|
|
{ stdenv, fetchurl, perl
|
2009-02-03 14:13:35 -08:00
|
|
|
, enableACLs ? true, acl ? null
|
2012-01-18 12:38:24 -08:00
|
|
|
, enableCopyDevicesPatch ? false
|
2009-02-03 14:13:35 -08:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableACLs -> acl != null;
|
2005-11-22 14:39:09 -08:00
|
|
|
|
2012-01-18 12:38:24 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2014-04-11 04:35:06 -07:00
|
|
|
name = "rsync-${version}";
|
2014-09-05 07:43:06 -07:00
|
|
|
version = "3.1.1";
|
2011-12-03 08:11:57 -08:00
|
|
|
|
2012-01-18 12:38:24 -08:00
|
|
|
mainSrc = fetchurl {
|
2014-09-05 07:43:06 -07:00
|
|
|
# signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5
|
2015-02-08 13:29:27 -08:00
|
|
|
url = "mirror://samba/rsync/src/rsync-${version}.tar.gz";
|
2014-09-05 07:43:06 -07:00
|
|
|
sha256 = "0896iah6w72q5izpxgkai75bn40dqkqifi2ivcxjzr2zrx7kdr3x";
|
2005-11-22 14:39:09 -08:00
|
|
|
};
|
2009-02-03 14:13:35 -08:00
|
|
|
|
2012-01-18 12:38:24 -08:00
|
|
|
patchesSrc = fetchurl {
|
2014-09-05 07:43:06 -07:00
|
|
|
# signed with key 0048 C8B0 26D4 C96F 0E58 9C2F 6C85 9FB1 4B96 A8C5
|
2015-02-08 13:29:27 -08:00
|
|
|
url = "mirror://samba/rsync/rsync-patches-${version}.tar.gz";
|
2014-09-05 07:43:06 -07:00
|
|
|
sha256 = "0iij996xbyn20yr4w3kv3rw3cx4jwkg2k85x6w5hb5xlgsis8zjl";
|
2012-01-18 12:38:24 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
srcs = [mainSrc] ++ stdenv.lib.optional enableCopyDevicesPatch patchesSrc;
|
2014-09-05 07:43:06 -07:00
|
|
|
patches = stdenv.lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff";
|
2012-01-18 12:38:24 -08:00
|
|
|
|
2011-09-21 00:04:22 -07:00
|
|
|
buildInputs = stdenv.lib.optional enableACLs acl;
|
2012-12-28 10:20:09 -08:00
|
|
|
nativeBuildInputs = [perl];
|
2009-02-03 14:13:35 -08:00
|
|
|
|
2014-05-05 05:55:34 -07:00
|
|
|
configureFlags = "--with-nobody-group=nogroup";
|
|
|
|
|
2014-09-05 07:43:06 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://rsync.samba.org/;
|
2009-02-03 14:13:35 -08:00
|
|
|
description = "A fast incremental file transfer utility";
|
2014-09-05 07:43:06 -07:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ simons emery ];
|
2009-02-03 14:13:35 -08:00
|
|
|
};
|
2005-11-22 14:39:09 -08:00
|
|
|
}
|