@ -75,26 +75,24 @@ unwrapped = stdenv.mkDerivation rec {
} ;
} ;
wrapped-full = with luajitPackages ; let
luaPkgs = [
wrapped-full = runCommand unwrapped . name
{
nativeBuildInputs = [ makeWrapper ] ;
buildInputs = with luajitPackages ; [
luasec luasocket # trust anchor bootstrap, prefill module
lfs # prefill module
# Almost all is for the 'http' module:
http cqueues fifo lpeg lpeg_patterns luaossl compat53 basexx
http # for http module; brings lots of deps; some are useful elsewhere
] ;
in runCommand unwrapped . name
{
nativeBuildInputs = [ makeWrapper ] ;
preferLocalBuild = true ;
allowSubstitutes = false ;
}
''
mkdir - p " $ o u t / s b i n " " $ o u t / s h a r e "
makeWrapper ' $ { unwrapped } /s bin/kresd ' " $ o u t " /s bin/kresd \
- - set LUA_PATH ' $ { concatStringsSep " ; " ( map getLuaPath luaPkgs ) } ' \
- - set LUA_CPATH ' $ { concatStringsSep " ; " ( map getLuaCPath luaPkgs ) } '
mkdir - p " $ o u t " / { bin , share }
makeWrapper ' $ { unwrapped } /bin/kresd ' " $ o u t " /bin/kresd \
- - set LUA_PATH " $ L U A _ P A T H " \
- - set LUA_CPATH " $ L U A _ C P A T H "
ln - sr ' $ { unwrapped } /share/man ' " $ o u t " /share /
ln - sr " $ o u t " / { s bin, bin }
ln - sr " $ o u t " / { bin , s bin}
'' ;
in result