lua-5.1: fix $prefix in installed pkgconfig file

This commit is contained in:
Peter Simons 2013-10-03 17:01:53 +02:00
parent c7ad106209
commit 9c6e0e584c

View file

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
postInstall = ''
mkdir -p "$out/share/doc/lua" "$out/lib/pkgconfig"
mv "etc/lua.pc" "$out/lib/pkgconfig/"
sed <"etc/lua.pc" >"$out/lib/pkgconfig/lua.pc" -e "s|^prefix=.*|prefix=$out|"
mv "doc/"*.{gif,png,css,html} "$out/share/doc/lua/"
rmdir $out/{share,lib}/lua/5.1 $out/{share,lib}/lua
'';