diff options
author | Will Dietz <w@wdtz.org> | 2018-04-23 13:47:32 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-04-24 17:24:39 -0500 |
commit | 40be5dd2df4e57237a44fee596e8c2df232686d2 (patch) | |
tree | 66e8f5d6edd4dcee83c2d0f91a4ef9def504989e /pkgs/os-specific/linux/tcp-wrappers/default.nix | |
parent | 092a4fff400a06d2b82b8fb9722bcc05c9e89566 (diff) | |
download | nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.gz nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.bz2 nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.lz nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.xz nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.tar.zst nixpkgs-40be5dd2df4e57237a44fee596e8c2df232686d2.zip |
tcp-wrappers: patch up crufty code, fix w/musl
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" ]; |