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
|
|
|
|
2016-02-13 18:50:07 +01:00
|
|
|
let
|
|
|
|
base = import ./base.nix { inherit stdenv fetchurl; };
|
|
|
|
in
|
2012-01-18 21:38:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-02-13 18:50:07 +01:00
|
|
|
name = "rsync-${base.version}";
|
2011-12-03 17:11:57 +01:00
|
|
|
|
2016-02-13 18:50:07 +01:00
|
|
|
mainSrc = base.src;
|
2009-02-03 23:13:35 +01:00
|
|
|
|
2016-02-13 18:50:07 +01:00
|
|
|
patchesSrc = base.patches;
|
2012-01-18 21:38:24 +01:00
|
|
|
|
|
|
|
srcs = [mainSrc] ++ stdenv.lib.optional enableCopyDevicesPatch patchesSrc;
|
2014-09-05 16:43:06 +02:00
|
|
|
patches = stdenv.lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff";
|
2012-01-18 21:38:24 +01:00
|
|
|
|
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
|
|
|
|
2014-05-05 14:55:34 +02:00
|
|
|
configureFlags = "--with-nobody-group=nogroup";
|
|
|
|
|
2016-02-13 18:50:07 +01:00
|
|
|
meta = base.meta // {
|
2009-02-03 23:13:35 +01:00
|
|
|
description = "A fast incremental file transfer utility";
|
2016-02-21 09:59:00 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ simons ehmry kampfschlaefer ];
|
2009-02-03 23:13:35 +01:00
|
|
|
};
|
2005-11-22 23:39:09 +01:00
|
|
|
}
|