tacacsplus: disable libwrap

This commit is contained in:
0x4A6F 2025-05-17 15:24:52 +02:00
parent 3fcbdcfc70
commit bdce3dcf61
No known key found for this signature in database
GPG key ID: 8DEDBA5BE07080E1

View file

@ -2,11 +2,13 @@
lib,
stdenv,
fetchurl,
tcp_wrappers,
flex,
bison,
perl,
libnsl,
# --with-libwrap=yes is currently broken, TODO unbreak
withLibWrap ? false,
tcp_wrappers,
}:
stdenv.mkDerivation rec {
@ -22,10 +24,17 @@ stdenv.mkDerivation rec {
flex
bison
];
buildInputs = [
tcp_wrappers
perl
libnsl
buildInputs =
[
perl
libnsl
]
++ lib.optionals withLibWrap [
tcp_wrappers
];
configureFlags = lib.optionals (!withLibWrap) [
"--with-libwrap=no"
];
meta = with lib; {