nixpkgs/pkgs/applications/networking/sync/rsync/default.nix
Wout Mertens 6b628d7c03 rsync: build with own zlib again
Rsync has its own patched compress function, and to be able to use the `-z` flag, it needs to use that one.

With `-zz` rsync can use an external zlib, but then it can't talk to older rsync versions.

More details at https://bugs.mageia.org/show_bug.cgi?id=13669
2017-07-19 14:18:51 +02:00

31 lines
824 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"];
meta = base.meta // {
description = "A fast incremental file transfer utility";
maintainers = with stdenv.lib.maintainers; [ peti ehmry kampfschlaefer ];
};
}