3156263876
The rsync binary was previously built without iconv support which is needed for utf-8 conversions on darwin. Fixes #26864. Additionally rsync used to be built with bundled versions of zlib and popt that were outdated. This decreases the size of the rsync binary by ~82KB.
31 lines
850 B
Nix
31 lines
850 B
Nix
{ stdenv, fetchurl, perl, libiconv, zlib, popt
|
|
, enableACLs ? true, acl ? null
|
|
, enableCopyDevicesPatch ? false
|
|
}:
|
|
|
|
assert enableACLs -> acl != null;
|
|
|
|
let
|
|
base = import ./base.nix { inherit stdenv fetchurl; };
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "rsync-${base.version}";
|
|
|
|
mainSrc = base.src;
|
|
|
|
patchesSrc = base.patches;
|
|
|
|
srcs = [mainSrc] ++ stdenv.lib.optional enableCopyDevicesPatch patchesSrc;
|
|
patches = stdenv.lib.optional enableCopyDevicesPatch "./patches/copy-devices.diff";
|
|
|
|
buildInputs = [libiconv zlib popt] ++ stdenv.lib.optional enableACLs acl;
|
|
nativeBuildInputs = [perl];
|
|
|
|
configureFlags = ["--with-nobody-group=nogroup" "--without-included-zlib"];
|
|
|
|
meta = base.meta // {
|
|
description = "A fast incremental file transfer utility";
|
|
maintainers = with stdenv.lib.maintainers; [ peti ehmry kampfschlaefer ];
|
|
};
|
|
}
|