glibc-locales: setup prefix-path differently

:multiple-outputs:
This commit is contained in:
Mathijs Kwik 2013-06-15 18:41:16 +02:00 committed by Eelco Dolstra
parent b002fd9cf3
commit 1f7ddbdb82

View File

@ -25,7 +25,7 @@ in
# $TMPDIR/nix/store/...-glibc-.../lib/locale/locale-archive.
buildPhase =
''
mkdir -p $TMPDIR/"$(dirname $(readlink -f $(type -p localedef)))/../lib/locale"
mkdir -p $TMPDIR/"${stdenv.gcc.libc}/lib/locale"
# Hack to allow building of the locales (needed since glibc-2.12)
sed -i -e "s,^LOCALEDEF=.*,LOCALEDEF=localedef --prefix=$TMPDIR," -e \