Skip to content

Commit

Permalink
nixosTests.openresty-lua: simplify (#347464)
Browse files Browse the repository at this point in the history
  • Loading branch information
flokli authored Oct 9, 2024
2 parents fb983bb + c2a2f68 commit eb9f4a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nixos/tests/openresty-lua.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit eb9f4a3

Please sign in to comment.