Unverified Commit a3600cc7 authored by Reno Dakota's avatar Reno Dakota
Browse files

stfl: link with libiconv on darwin

parent 1889ebd9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
{ 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 = ''