3
0
Fork 0
forked from mirrors/nixpkgs

unrtf: fix darwin build

unrtf needs libiconv on Darwin. Linux has issues with the -liconv flag,
but it's provided by gcc anyway.
This commit is contained in:
Matthew Bauer 2016-08-12 00:20:56 -05:00
parent cf69e6d870
commit a6faa04ee4

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoconf, automake }: { stdenv, fetchurl, autoconf, automake, libiconv }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "unrtf-${version}"; name = "unrtf-${version}";
@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoconf automake ]; nativeBuildInputs = [ autoconf automake ];
buildInputs = [ ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
preConfigure = "./bootstrap"; preConfigure = "./bootstrap";
outputs = [ "out" "man" ]; outputs = [ "out" "man" ];