nixosTests.openresty-lua: simplify (#347464)

This commit is contained in:
Florian Klink 2024-10-09 14:55:55 +03:00 committed by GitHub
commit eb9f4a34ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,12 +1,11 @@
import ./make-test-python.nix ({ pkgs, lib, ... }: import ./make-test-python.nix ({ pkgs, lib, ... }:
let let
lualibs = [ luaLibs = [
pkgs.lua.pkgs.markdown pkgs.lua.pkgs.markdown
]; ];
getPath = lib: type: "${lib}/share/lua/${pkgs.lua.luaversion}/?.${type}"; getLuaPath = lib: "${lib}/share/lua/${pkgs.lua.luaversion}/?.lua";
getLuaPath = lib: getPath lib "lua"; luaPath = lib.concatStringsSep ";" (map getLuaPath luaLibs);
luaPath = lib.concatStringsSep ";" (map getLuaPath lualibs);
in in
{ {
name = "openresty-lua"; name = "openresty-lua";