From aaf008bda42e51c48c72d95f1e6dbd548c0b18c2 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Wed, 1 Jun 2016 23:00:28 +0300 Subject: [PATCH] libelf: Fix cross compilation --- pkgs/development/libraries/libelf/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libelf/default.nix b/pkgs/development/libraries/libelf/default.nix index 623256bb6b7b..12588617d4a1 100644 --- a/pkgs/development/libraries/libelf/default.nix +++ b/pkgs/development/libraries/libelf/default.nix @@ -9,10 +9,10 @@ stdenv.mkDerivation rec { }; doCheck = true; - + # For cross-compiling, native glibc is needed for the "gencat" program. crossAttrs = { - nativeBuildInputs = [ glibc ]; + nativeBuildInputs = [ gettext glibc ]; }; # Libelf's custom NLS macros fail to determine the catalog file extension on @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { # FIXME: Eventually make Gettext a build input on all platforms. configureFlags = stdenv.lib.optional stdenv.isDarwin "--disable-nls"; - buildInputs = [ gettext ]; + nativeBuildInputs = [ gettext ]; meta = { description = "ELF object file access library";