From a480f92f9de9e355832af260c28ed4fce3ef758a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Mon, 23 Aug 2010 17:36:51 +0000 Subject: [PATCH] Fixing the glibc locales build expression (in the sense that now it builds, not that it looks nice) svn path=/nixpkgs/branches/stdenv-updates/; revision=23369 --- pkgs/development/libraries/glibc-2.12/locales.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/glibc-2.12/locales.nix b/pkgs/development/libraries/glibc-2.12/locales.nix index 821eddd41f0..38f3f072384 100644 --- a/pkgs/development/libraries/glibc-2.12/locales.nix +++ b/pkgs/development/libraries/glibc-2.12/locales.nix @@ -26,6 +26,10 @@ in buildPhase = '' mkdir -p $TMPDIR/"$(dirname $(readlink -f $(type -p localedef)))/../lib/locale" + + # Hack to allow building of the locales (needed since glibc-2.12) + sed -i -e 's/^LOCALEDEF=/LOCALEDEF?=/' ../glibc-2*/localedata/Makefile + make localedata/install-locales \ LOCALEDEF="localedef --prefix=$TMPDIR" \ localedir=$out/lib/locale \