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
|
|
|
|
2016-02-13 09:50:07 -08:00
|
|
|
let
|
|
|
|
base = import ./base.nix { inherit stdenv fetchurl; };
|
|
|
|
in
|
2012-01-18 12:38:24 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2016-02-13 09:50:07 -08:00
|
|
|
name = "rsync-${base.version}";
|
2011-12-03 08:11:57 -08:00
|
|
|
|
2016-02-13 09:50:07 -08:00
|
|
|
mainSrc = base.src;
|
2009-02-03 14:13:35 -08:00
|
|
|
|
2016-02-13 09:50:07 -08:00
|
|
|
patchesSrc = base.patches;
|
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";
|
|
|
|
|
2016-02-13 09:50:07 -08:00
|
|
|
meta = base.meta // {
|
2009-02-03 14:13:35 -08:00
|
|
|
description = "A fast incremental file transfer utility";
|
2016-02-21 00:59:00 -08:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ simons ehmry kampfschlaefer ];
|
2009-02-03 14:13:35 -08:00
|
|
|
};
|
2005-11-22 14:39:09 -08:00
|
|
|
}
|