From a3600cc7abde2e2cab2ddc683e784cfaf0c13e65 Mon Sep 17 00:00:00 2001 From: Reno Dakota <170618376+paparodeo@users.noreply.github.com> Date: Sat, 26 Oct 2024 18:13:47 +0000 Subject: [PATCH] stfl: link with libiconv on darwin --- pkgs/development/libraries/stfl/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/stfl/default.nix b/pkgs/development/libraries/stfl/default.nix index 91a41ac35298..fe6278a1d78b 100644 --- a/pkgs/development/libraries/stfl/default.nix +++ b/pkgs/development/libraries/stfl/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, ncurses, libiconv }: +{ lib, stdenv, fetchurl, ncurses }: stdenv.mkDerivation rec { pname = "stfl"; @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; - buildInputs = [ ncurses libiconv ]; + buildInputs = [ ncurses ]; # Silence warnings related to use of implicitly declared library functions and implicit ints. # TODO: Remove and/or fix with patches the next time this package is updated. @@ -20,6 +20,8 @@ stdenv.mkDerivation rec { "-Wno-error=implicit-function-declaration" "-Wno-error=implicit-int" ]; + } // lib.optionalAttrs stdenv.hostPlatform.isDarwin { + NIX_LDFLAGS = "-liconv"; }; preBuild = ''