diff options
Diffstat (limited to 'pkgs/os-specific/linux/tcp-wrappers/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/tcp-wrappers/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/tcp-wrappers/default.nix b/pkgs/os-specific/linux/tcp-wrappers/default.nix index 667189009cc..e3aae30babc 100644 --- a/pkgs/os-specific/linux/tcp-wrappers/default.nix +++ b/pkgs/os-specific/linux/tcp-wrappers/default.nix @@ -25,6 +25,14 @@ in stdenv.mkDerivation rec { substituteInPlace debian/patches/13_shlib_weaksym --replace STRINGS STRINGDEFS ''; + # Fix __BEGIN_DECLS usage (even if it wasn't non-standard, this doesn't include sys/cdefs.h) + patches = [ ./cdecls.patch ]; + + postPatch = stdenv.lib.optionalString stdenv.hostPlatform.isMusl '' + substituteInPlace Makefile \ + --replace '-DNETGROUP' '-DUSE_GETDOMAIN' + ''; + buildInputs = [ libnsl ]; makeFlags = [ "REAL_DAEMON_DIR=$(out)/bin" "linux" ]; |