libb2: fix build on ARM

This commit is contained in:
Robert Schütz 2018-05-11 17:14:31 +02:00 committed by Tuomas Tynkkynen
parent 03318efe09
commit 409b97c95f

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, autoconf, automake, libtool }:
{ stdenv, hostPlatform, fetchurl, autoconf, automake, libtool }:
stdenv.mkDerivation rec {
name = "libb2-${version}";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
./autogen.sh
'';
configureFlags = [ "--enable-fat=yes" ];
configureFlags = stdenv.lib.optional hostPlatform.isx86 "--enable-fat=yes";
nativeBuildInputs = [ autoconf automake libtool ];