2010-01-05 13:29:58 +01:00
|
|
|
{ stdenv, fetchurl, perl
|
2009-02-03 23:13:35 +01:00
|
|
|
, enableACLs ? true, acl ? null
|
2012-01-18 21:38:24 +01:00
|
|
|
, enableCopyDevicesPatch ? false
|
2009-02-03 23:13:35 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert enableACLs -> acl != null;
|
2005-11-22 23:39:09 +01:00
|
|
|
|
2012-01-18 21:38:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-12-03 00:14:09 +01:00
|
|
|
name = "rsync-3.0.9";
|
2011-12-03 17:11:57 +01:00
|
|
|
|
2012-01-18 21:38:24 +01:00
|
|
|
mainSrc = fetchurl {
|
2011-12-03 00:14:09 +01:00
|
|
|
url = http://rsync.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz;
|
|
|
|
sha256 = "01bw4klqsrlhh3i9lazd485sd9qx5djvnwa21lj2h3a9sn6hzw9h";
|
2005-11-22 23:39:09 +01:00
|
|
|
};
|
2009-02-03 23:13:35 +01:00
|
|
|
|
2012-01-18 21:38:24 +01:00
|
|
|
patchesSrc = fetchurl {
|
|
|
|
url = http://rsync.samba.org/ftp/rsync/rsync-patches-3.0.9.tar.gz;
|
|
|
|
sha256 = "0c1e9b56e99667dfc47641124460bac61a04c5d2ee89f575c6bc78c7a69005a9";
|
|
|
|
};
|
|
|
|
|
|
|
|
srcs = [mainSrc] ++ stdenv.lib.optional enableCopyDevicesPatch patchesSrc;
|
|
|
|
patches = [] ++ stdenv.lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff";
|
|
|
|
|
2011-09-21 09:04:22 +02:00
|
|
|
buildInputs = stdenv.lib.optional enableACLs acl;
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [perl];
|
2009-02-03 23:13:35 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://samba.anu.edu.au/rsync/;
|
|
|
|
description = "A fast incremental file transfer utility";
|
2013-03-25 12:36:12 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2011-12-03 17:11:54 +01:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
2009-02-03 23:13:35 +01:00
|
|
|
};
|
2005-11-22 23:39:09 +01:00
|
|
|
}
|