git.iko.soy/typeable/nixpkgs
on master help sign in
unrtf: fix darwin build

unrtf needs libiconv on Darwin. Linux has issues with the -liconv flag, but it's provided by gcc anyway.

commita6faa04ee45f1466335cfeb28cfa1b897e31a9b7 authorMatthew Bauer <mjbauer95@gmail.com> dateFri 12 Aug 2016, 00:20 (10 years ago) parentcf69e6d
1 file changed+4−1
pkgs/tools/text/unrtf/default.nix+4−1
pkgs/tools/text/unrtf/default.nix+4−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, autoconf, automake }:
1+{ stdenv, fetchurl, autoconf, automake, libiconv }:
22
33stdenv.mkDerivation rec {
44 name = "unrtf-${version}";
@@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
1111
1212 nativeBuildInputs = [ autoconf automake ];
1313
14+ buildInputs = [ ] ++ stdenv.lib.optional stdenv.isDarwin libiconv;
15+ NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-liconv";
16+
1417 preConfigure = "./bootstrap";
1518
1619 outputs = [ "out" "man" ];