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