summary refs log tree commit diff
diff options
context:
space:
mode:
authorRandy Eckenrode <randy@largeandhighquality.com>2023-11-07 09:17:11 -0500
committerRandy Eckenrode <randy@largeandhighquality.com>2023-11-07 09:20:08 -0500
commit2feff8a9bf1e688ea70c1df724c9b4235b891ee0 (patch)
tree0943c2aa53f1806e8a92f27929799dd785b89fed
parentdaa4cd2c2a12a48a41ae9e14ade1a978f6b39b40 (diff)
downloadnixpkgs-2feff8a9bf1e688ea70c1df724c9b4235b891ee0.tar
nixpkgs-2feff8a9bf1e688ea70c1df724c9b4235b891ee0.tar.gz
nixpkgs-2feff8a9bf1e688ea70c1df724c9b4235b891ee0.tar.bz2
nixpkgs-2feff8a9bf1e688ea70c1df724c9b4235b891ee0.tar.lz
nixpkgs-2feff8a9bf1e688ea70c1df724c9b4235b891ee0.tar.xz
nixpkgs-2feff8a9bf1e688ea70c1df724c9b4235b891ee0.tar.zst
nixpkgs-2feff8a9bf1e688ea70c1df724c9b4235b891ee0.zip
inetutils: fix build on x86_64-darwin
This is a workaround to avoid mass rebuilds in staging-next. The problem
is the 10.12 source-based SDK does not include `utmp.h`, but it should.
Another PR will fix that for the next staging cycle and revert this commit.
-rw-r--r--pkgs/tools/networking/inetutils/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/networking/inetutils/default.nix b/pkgs/tools/networking/inetutils/default.nix
index e4eb2eeaac4..9b1723a4d12 100644
--- a/pkgs/tools/networking/inetutils/default.nix
+++ b/pkgs/tools/networking/inetutils/default.nix
@@ -34,6 +34,12 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ help2man perl /* for `whois' */ ];
   buildInputs = [ ncurses /* for `talk' */ libxcrypt ];
 
+  env = lib.optionalAttrs stdenv.isDarwin {
+    # This is a temporary workaround for missing headers in the 10.12 SDK to avoid a mass rebuild.
+    # A commit to revert this change will be included in the fix PR targeting staging.
+    NIX_CFLAGS_COMPILE = "-Wno-error=implicit-function-declaration";
+  };
+
   # Don't use help2man if cross-compiling
   # https://lists.gnu.org/archive/html/bug-sed/2017-01/msg00001.html
   # https://git.congatec.com/yocto/meta-openembedded/blob/3402bfac6b595c622e4590a8ff5eaaa854e2a2a3/meta-networking/recipes-connectivity/inetutils/inetutils_1.9.1.bb#L44