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, ... }:
let
lualibs = [
luaLibs = [
pkgs.lua.pkgs.markdown
];
getPath = lib: type: "${lib}/share/lua/${pkgs.lua.luaversion}/?.${type}";
getLuaPath = lib: getPath lib "lua";
luaPath = lib.concatStringsSep ";" (map getLuaPath lualibs);
getLuaPath = lib: "${lib}/share/lua/${pkgs.lua.luaversion}/?.lua";
luaPath = lib.concatStringsSep ";" (map getLuaPath luaLibs);
in
{
name = "openresty-lua";