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