libidn2: Fix cross-compilation

This commit is contained in:
Shea Levy 2018-02-25 08:20:45 -05:00
parent 538913cb90
commit 337d8ab2e1
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -1,4 +1,4 @@
{ fetchurl, stdenv, libiconv, libunistring, help2man, ronn }:
{ fetchurl, stdenv, libiconv, libunistring, help2man, ronn, buildPackages }:
with stdenv.lib;
@ -15,8 +15,10 @@ stdenv.mkDerivation rec {
patches = optional stdenv.isDarwin ./fix-error-darwin.patch;
buildInputs = [ libunistring ronn ]
++ optionals stdenv.isDarwin [ libiconv help2man ];
nativeBuildInputs = [ ronn ]
++ optional stdenv.isDarwin help2man;
buildInputs = [ libunistring ] ++ optional stdenv.isDarwin libiconv;
depsBuildBuild = [ buildPackages.stdenv.cc ];
meta = {
homepage = "https://www.gnu.org/software/libidn/#libidn2";