rsync: disable the bundled zlib explicitly

We've been providing zlib as a buildInput for some time now but rsync
still builds (& links) it's own copy of zlib unless we disable it
explicitly. This cuts down on compilation time but otherwise shouldn't
have any side effects.
This commit is contained in:
Andreas Rammhold 2020-11-01 11:38:54 +01:00 committed by Frederik Rietdijk
parent 409ca6f1f9
commit 5219a3ade1

View file

@ -35,7 +35,13 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optional enableXXHash xxHash;
nativeBuildInputs = [perl];
configureFlags = ["--with-nobody-group=nogroup"]
configureFlags = [
"--with-nobody-group=nogroup"
# disable the included zlib explicitly as it otherwise still compiles and
# links them even.
"--with-included-zlib=no"
]
# Work around issue with cross-compilation:
# configure.sh: error: cannot run test program while cross compiling
# Remove once 3.2.4 or more recent is released.