From d968cb95a2f6e65702421c360eb62b5eaccf26ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 27 Jan 2011 09:50:44 +0000 Subject: [PATCH] libelf: Attempt to fix Darwin builds. svn path=/nixpkgs/trunk/; revision=25694 --- pkgs/development/libraries/libelf/default.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libelf/default.nix b/pkgs/development/libraries/libelf/default.nix index 339e97b9673b..46be77d713d0 100644 --- a/pkgs/development/libraries/libelf/default.nix +++ b/pkgs/development/libraries/libelf/default.nix @@ -1,6 +1,6 @@ -{ fetchurl, stdenv }: +{ fetchurl, stdenv, gettext }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (rec { name = "libelf-0.8.13"; src = fetchurl { @@ -21,3 +21,12 @@ stdenv.mkDerivation rec { maintainers = [ stdenv.lib.maintainers.ludo ]; }; } + +// + +# Gettext is lacking from `stdenv' on Darwin, but not completely, so NLS +# support is enabled but eventually fails. +# FIXME: Eventually make Gettext a build input on all platforms. +(if stdenv.isDarwin + then { buildInputs = [ gettext ]; } + else { }))