From a6faa04ee45f1466335cfeb28cfa1b897e31a9b7 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Fri, 12 Aug 2016 00:20:56 -0500 Subject: [PATCH] unrtf: fix darwin build unrtf needs libiconv on Darwin. Linux has issues with the -liconv flag, but it's provided by gcc anyway. --- pkgs/tools/text/unrtf/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" ];