libidn2: fix darwin build

cc #22595
This commit is contained in:
Franz Pletz
2017-02-12 02:31:41 +01:00
parent 123cbd40c2
commit 5e599035f4
2 changed files with 37 additions and 2 deletions
@@ -1,4 +1,6 @@
{ fetchurl, stdenv, libiconv, libunistring }:
{ fetchurl, stdenv, libiconv, libunistring, help2man }:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "libidn2-0.16";
@@ -10,8 +12,10 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "dev" "out" "info" "devdoc" ];
patches = optional stdenv.isDarwin ./fix-error-darwin.patch;
buildInputs = [ libunistring ]
++ stdenv.lib.optional stdenv.isDarwin libiconv;
++ optionals stdenv.isDarwin [ libiconv help2man ];
meta = {
homepage = "https://www.gnu.org/software/libidn/#libidn2";