summaryrefslogtreecommitdiff
path: root/shell.nix
blob: 295bacb4271d1ae2cac78b92c56987bd6d1688ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
with import <nixpkgs> {};
with lua53Packages;

let
  libs = [lua5_3 lua53Packages.lpeg];
in
stdenv.mkDerivation rec {
  name = "lua-env";
  buildInputs = libs;

  shellHook = ''
    export LUA_CPATH="${lib.concatStringsSep ";" (map getLuaCPath libs)};./?.so"
    export LUA_PATH="${lib.concatStringsSep ";" (map getLuaPath libs)};./?.lua"
  '';
}