Lua generate nix packages from luarocks (#54978)
* lua: generate packages from luarocks * luarocks-nix: update * removed packages already available in nixpkgs * adressing reviews update script can now accept another csv file as input with -c * Remove obsolete comment
This commit is contained in:
committed by
Michael Raskin
parent
0955567a7d
commit
2ba891788b
19
pkgs/development/interpreters/lua-5/wrap-lua.nix
Normal file
19
pkgs/development/interpreters/lua-5/wrap-lua.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ lib
|
||||
, lua
|
||||
, makeSetupHook
|
||||
, makeWrapper
|
||||
}:
|
||||
|
||||
with lib;
|
||||
|
||||
# defined in trivial-builders.nix
|
||||
# imported as wrapLua in lua-packages.nix and passed to build-lua-derivation to be used as buildInput
|
||||
makeSetupHook {
|
||||
deps = makeWrapper;
|
||||
substitutions.executable = lua.interpreter;
|
||||
substitutions.lua = lua;
|
||||
substitutions.LuaPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
||||
substitutions.LuaCPathSearchPaths = lib.escapeShellArgs lua.LuaPathSearchPaths;
|
||||
|
||||
} ./wrap.sh
|
||||
|
||||
Reference in New Issue
Block a user