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
|
|
|
|
2016-02-13 17:50:07 +00:00
|
|
|
let
|
|
|
|
base = import ./base.nix { inherit stdenv fetchurl; };
|
|
|
|
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 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";
|
|
|
|
|
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-02-21 08:59:00 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ simons ehmry kampfschlaefer ];
|
2009-02-03 22:13:35 +00:00
|
|
|
};
|
2005-11-22 22:39:09 +00:00
|
|
|
}
|