diff --git a/pkgs/tools/text/unrtf/default.nix b/pkgs/tools/text/unrtf/default.nix index b1d8525c4da..34eea38eb73 100644 --- a/pkgs/tools/text/unrtf/default.nix +++ b/pkgs/tools/text/unrtf/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, autoconf, automake }: +{ stdenv, fetchurl, autoconf, automake, libiconv }: stdenv.mkDerivation rec { name = "unrtf-${version}"; @@ -11,6 +11,9 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoconf automake ]; + buildInputs = [ ] ++ stdenv.lib.optional stdenv.isDarwin libiconv; + NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv"; + preConfigure = "./bootstrap"; outputs = [ "out" "man" ];