glibc-locales: don't depend on /nix/store location

previously, $TMPDIR/nix/store is hard-coded so that only building and installing is correct with /nix/store
See #1273.
This commit is contained in:
Ian-Woo Kim 2013-11-24 21:05:59 +01:00 committed by Vladimír Čunát
parent 2f53f6c82d
commit fe32d12ef7

View File

@ -40,7 +40,7 @@ in
installPhase =
''
mkdir -p "$out/lib/locale"
cp -v "$TMPDIR/nix/store/"*"/lib/locale/locale-archive" "$out/lib/locale"
cp -v $TMPDIR/"$(dirname $(readlink -f $(type -p localedef)))/../lib/locale/locale-archive" "$out/lib/locale"
'';
meta.description = "Locale information for the GNU C Library";