nixpkgs/pkgs/applications/networking/sync/rsync/default.nix

31 lines
889 B
Nix
Raw Normal View History

{ stdenv, fetchurl, perl, libiconv, zlib, popt
2019-02-03 15:30:18 +00:00
, enableACLs ? !(stdenv.isDarwin || stdenv.isSunOS || stdenv.isFreeBSD), 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.upstreamPatchTarball;
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 ];
};
}