lua: split manual into separate output
Also, make sure that "doc" outputs of different versions of lua are co-installable, so user can install multiple manuals and read them side-by-side.
This commit is contained in:
parent
84208ebfd7
commit
c0bc18bf2f
@ -41,6 +41,7 @@ in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "lua";
|
||||
inherit version;
|
||||
outputs = [ "out" "doc" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.lua.org/ftp/${pname}-${version}.tar.gz";
|
||||
@ -132,6 +133,9 @@ stdenv.mkDerivation rec {
|
||||
ln -s "$out/lib/pkgconfig/lua.pc" "$out/lib/pkgconfig/lua-${luaversion}.pc"
|
||||
ln -s "$out/lib/pkgconfig/lua.pc" "$out/lib/pkgconfig/lua${luaversion}.pc"
|
||||
ln -s "$out/lib/pkgconfig/lua.pc" "$out/lib/pkgconfig/lua${lib.replaceStrings [ "." ] [ "" ] luaversion}.pc"
|
||||
|
||||
# Make documentation outputs of different versions co-installable.
|
||||
mv $out/share/doc/lua $out/share/doc/lua-$version
|
||||
'';
|
||||
|
||||
# copied from python
|
||||
|
Loading…
Reference in New Issue
Block a user