about summary refs log tree commit diff
path: root/pkgs/development/libraries/libelf
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2011-01-27 09:50:44 +0000
committerLudovic Courtès <ludo@gnu.org>2011-01-27 09:50:44 +0000
commitd968cb95a2f6e65702421c360eb62b5eaccf26ac (patch)
tree888f37433cc8346902ca4be2f9a8e2481eb2f870 /pkgs/development/libraries/libelf
parentedfedf6736f8a069d5a7cc9fe65d82f088b4b7f9 (diff)
downloadnixlib-d968cb95a2f6e65702421c360eb62b5eaccf26ac.tar
nixlib-d968cb95a2f6e65702421c360eb62b5eaccf26ac.tar.gz
nixlib-d968cb95a2f6e65702421c360eb62b5eaccf26ac.tar.bz2
nixlib-d968cb95a2f6e65702421c360eb62b5eaccf26ac.tar.lz
nixlib-d968cb95a2f6e65702421c360eb62b5eaccf26ac.tar.xz
nixlib-d968cb95a2f6e65702421c360eb62b5eaccf26ac.tar.zst
nixlib-d968cb95a2f6e65702421c360eb62b5eaccf26ac.zip
libelf: Attempt to fix Darwin builds.
svn path=/nixpkgs/trunk/; revision=25694
Diffstat (limited to 'pkgs/development/libraries/libelf')
-rw-r--r--pkgs/development/libraries/libelf/default.nix13
1 files 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 { }))