summary refs log tree commit diff
path: root/pkgs/development/libraries/gettext
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-23 03:04:55 -0500
committerWill Dietz <w@wdtz.org>2018-03-23 03:04:55 -0500
commitb59fd7021093d73bcc0927f9f0d65f0e5d9c7542 (patch)
treed468e9ccca4bb1a76e4fd40458418d5b59055748 /pkgs/development/libraries/gettext
parent0668872d940ae6f97e91e74cc4329065a3af4749 (diff)
gettext: don't add -lintl on musl, either
gettext won't actually provide libintl unless we go out of
our way to tell it to do so [1][2].

We could add those flags on musl (as I initially did in [3]),
but then we have two different libintl.h files and generally
some confusion about which gettext is being used.

Instead of sorting that out, for now let's just continue on
without gettext providing libintl-- it's worked well enough so far.

Only change that needs to be made, then, is to avoid
adding -lintl on musl since there is no libintl.

[1] https://github.com/pullmoll/void-packages/commit/c739240fd25e8378fe0467cd51ab483427337410
[2] https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-libs/libintl/libintl-0.19.8.1.ebuild?id=332e48712b6521697f992f923c9c985482dd1c36#n41
[3] https://github.com/dtzWill/nixpkgs/commit/729302f29aea8d380196d114e7d2f904add40711
Diffstat (limited to 'pkgs/development/libraries/gettext')
-rw-r--r--pkgs/development/libraries/gettext/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gettext/default.nix b/pkgs/development/libraries/gettext/default.nix
index c3a74f73663ae..6dec7747c7e86 100644
--- a/pkgs/development/libraries/gettext/default.nix
+++ b/pkgs/development/libraries/gettext/default.nix
@@ -49,7 +49,7 @@ stdenv.mkDerivation rec {
   buildInputs = stdenv.lib.optional (!stdenv.isLinux && !hostPlatform.isCygwin) libiconv;
 
   setupHook = ./gettext-setup-hook.sh;
-  gettextNeedsLdflags = hostPlatform.libc != "glibc";
+  gettextNeedsLdflags = hostPlatform.libc != "glibc" && !hostPlatform.isMusl;
 
   enableParallelBuilding = true;