odt2txt: fix darwin build

- needs libiconv in ld flags on clang
This commit is contained in:
Matthew Bauer 2016-08-11 23:27:00 -05:00
parent a79ff78ec4
commit 2ecb5ddea7

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, zlib }: { stdenv, fetchurl, zlib, libiconv }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "odt2txt-0.4"; name = "odt2txt-0.4";
@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
configurePhase="export makeFlags=\"DESTDIR=$out\""; configurePhase="export makeFlags=\"DESTDIR=$out\"";
buildInputs = [ zlib ]; buildInputs = [ zlib libiconv ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
meta = { meta = {
description = "Simple .odt to .txt converter"; description = "Simple .odt to .txt converter";