diff options
author | Matthieu Coudron <coudron@iij.ad.jp> | 2019-02-04 20:30:58 +0900 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2019-02-04 11:30:58 +0000 |
commit | 2ba891788bacfb2c52f25a7a119b88c6cc298e35 (patch) | |
tree | 415e485e22f4ce10573fb404d5ec6d02268124cb /pkgs/top-level/lua-packages.nix | |
parent | 0955567a7d9fa9e1e472a37549e039ff4fe4f50a (diff) | |
download | nixlib-2ba891788bacfb2c52f25a7a119b88c6cc298e35.tar nixlib-2ba891788bacfb2c52f25a7a119b88c6cc298e35.tar.gz nixlib-2ba891788bacfb2c52f25a7a119b88c6cc298e35.tar.bz2 nixlib-2ba891788bacfb2c52f25a7a119b88c6cc298e35.tar.lz nixlib-2ba891788bacfb2c52f25a7a119b88c6cc298e35.tar.xz nixlib-2ba891788bacfb2c52f25a7a119b88c6cc298e35.tar.zst nixlib-2ba891788bacfb2c52f25a7a119b88c6cc298e35.zip |
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
Diffstat (limited to 'pkgs/top-level/lua-packages.nix')
-rw-r--r-- | pkgs/top-level/lua-packages.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index 50dd4d1fcd9a..11e05b504b43 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -56,6 +56,12 @@ let else if stdenv.isSunOS then "solaris" else throw "unsupported platform"; + buildLuaApplication = args: buildLuarocksPackage ({namePrefix="";} // args ); + + buildLuarocksPackage = with pkgs.lib; makeOverridable( callPackage ../development/interpreters/lua-5/build-lua-package.nix { + inherit toLuaModule; + inherit lua writeText; + }); in with self; { @@ -79,9 +85,15 @@ with self; { inherit toLuaModule lua-setup-hook; + inherit buildLuarocksPackage buildLuaApplication; inherit requiredLuaModules luaOlder luaAtLeast isLua51 isLua52 isLuaJIT lua callPackage; + # wraps programs in $out/bin with valid LUA_PATH/LUA_CPATH + wrapLua = callPackage ../development/interpreters/lua-5/wrap-lua.nix { + inherit lua; inherit (pkgs) makeSetupHook makeWrapper; + }; + luarocks = callPackage ../development/tools/misc/luarocks { inherit lua; }; |