Skip to content

Commit

Permalink
libmicrohttpd: fix darwin build
Browse files Browse the repository at this point in the history
(cherry picked from commit 547dba1)
  • Loading branch information
volth authored and LnL7 committed Sep 28, 2017
1 parent 3011e93 commit 8133dbf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/development/libraries/libmicrohttpd/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, libgcrypt, curl, gnutls, pkgconfig }:
{ stdenv, fetchurl, libgcrypt, curl, gnutls, pkgconfig, libiconv, libintlOrEmpty }:

stdenv.mkDerivation rec {
name = "libmicrohttpd-0.9.55";
Expand All @@ -9,7 +9,8 @@ stdenv.mkDerivation rec {
};

outputs = [ "out" "dev" "devdoc" "info" ];
buildInputs = [ libgcrypt curl gnutls pkgconfig ];
buildInputs = [ libgcrypt curl gnutls pkgconfig ]
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv libintlOrEmpty ];

preCheck = ''
# Since `localhost' can't be resolved in a chroot, work around it.
Expand All @@ -32,6 +33,7 @@ stdenv.mkDerivation rec {
homepage = http://www.gnu.org/software/libmicrohttpd/;

maintainers = with maintainers; [ eelco vrthra fpletz ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

0 comments on commit 8133dbf

Please sign in to comment.