2017-12-09 12:09:28 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, perl, libiconv, zlib, popt
|
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
|
|
|
|
2016-02-13 17:50:07 +00:00
|
|
|
let
|
2017-12-09 12:09:28 +00:00
|
|
|
base = import ./base.nix { inherit stdenv fetchurl fetchpatch; };
|
2016-02-13 17:50:07 +00:00
|
|
|
in
|
2012-01-18 20:38:24 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-02-13 17:50:07 +00:00
|
|
|
name = "rsync-${base.version}";
|
2011-12-03 16:11:57 +00:00
|
|
|
|
2016-02-13 17:50:07 +00:00
|
|
|
mainSrc = base.src;
|
2009-02-03 22:13:35 +00:00
|
|
|
|
2016-02-13 17:50:07 +00:00
|
|
|
patchesSrc = base.patches;
|
2012-01-18 20:38:24 +00:00
|
|
|
|
|
|
|
srcs = [mainSrc] ++ stdenv.lib.optional enableCopyDevicesPatch patchesSrc;
|
2014-09-05 14:43:06 +00:00
|
|
|
patches = stdenv.lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff";
|
2012-01-18 20:38:24 +00:00
|
|
|
|
2017-06-26 01:09:36 +00:00
|
|
|
buildInputs = [libiconv zlib popt] ++ stdenv.lib.optional enableACLs acl;
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [perl];
|
2009-02-03 22:13:35 +00:00
|
|
|
|
2017-07-19 10:49:46 +00:00
|
|
|
configureFlags = ["--with-nobody-group=nogroup"];
|
2014-05-05 12:55:34 +00:00
|
|
|
|
2016-02-13 17:50:07 +00:00
|
|
|
meta = base.meta // {
|
2009-02-03 22:13:35 +00:00
|
|
|
description = "A fast incremental file transfer utility";
|
2016-05-16 20:30:20 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ peti ehmry kampfschlaefer ];
|
2009-02-03 22:13:35 +00:00
|
|
|
};
|
2005-11-22 22:39:09 +00:00
|
|
|
}
|