diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2016-08-12 00:20:56 -0500 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2016-08-16 19:25:46 +0000 |
commit | a6faa04ee45f1466335cfeb28cfa1b897e31a9b7 (patch) | |
tree | 59af446c6386f6384dd0e63694e9f1fa34cbb67a /pkgs/tools/text | |
parent | cf69e6d8700e3b9b6be86e69d47fde5435a7b378 (diff) | |
download | nixlib-a6faa04ee45f1466335cfeb28cfa1b897e31a9b7.tar nixlib-a6faa04ee45f1466335cfeb28cfa1b897e31a9b7.tar.gz nixlib-a6faa04ee45f1466335cfeb28cfa1b897e31a9b7.tar.bz2 nixlib-a6faa04ee45f1466335cfeb28cfa1b897e31a9b7.tar.lz nixlib-a6faa04ee45f1466335cfeb28cfa1b897e31a9b7.tar.xz nixlib-a6faa04ee45f1466335cfeb28cfa1b897e31a9b7.tar.zst nixlib-a6faa04ee45f1466335cfeb28cfa1b897e31a9b7.zip |
unrtf: fix darwin build
unrtf needs libiconv on Darwin. Linux has issues with the -liconv flag, but it's provided by gcc anyway.
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/unrtf/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/text/unrtf/default.nix b/pkgs/tools/text/unrtf/default.nix index b1d8525c4da3..34eea38eb733 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" ]; |