summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/text/odt2txt
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2016-08-11 23:27:00 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2016-08-16 19:25:44 +0000
commit2ecb5ddea71817ce87838a699ea23d15eafe1c11 (patch)
treee66c5ebeaf47c8d5b5395a53518cc65779f3428d /pkgs/tools/text/odt2txt
parenta79ff78ec42149964218e4196a34660cabfa7e15 (diff)
odt2txt: fix darwin build
- needs libiconv in ld flags on clang
Diffstat (limited to 'pkgs/tools/text/odt2txt')
-rw-r--r--pkgs/tools/text/odt2txt/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/text/odt2txt/default.nix b/pkgs/tools/text/odt2txt/default.nix
index b7134bf8e47c..85f0f24b3874 100644
--- a/pkgs/tools/text/odt2txt/default.nix
+++ b/pkgs/tools/text/odt2txt/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, zlib }:
+{ stdenv, fetchurl, zlib, libiconv }:
stdenv.mkDerivation rec {
name = "odt2txt-0.4";
@@ -10,7 +10,9 @@ stdenv.mkDerivation rec {
configurePhase="export makeFlags=\"DESTDIR=$out\"";
- buildInputs = [ zlib ];
+ buildInputs = [ zlib libiconv ];
+
+ NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
meta = {
description = "Simple .odt to .txt converter";