mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
nixosTests.openresty-lua: simplify (#347464)
This commit is contained in:
commit
eb9f4a34ae
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user