about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/interpreters/lua-5/setup-hook.nix
blob: 62caffd8d8a0ff9fb8ba4b183c36e62b1928e5f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ runCommand, lib, }:

LuaPathSearchPaths: LuaCPathSearchPaths:

let
  hook = ./setup-hook.sh;
in runCommand "lua-setup-hook.sh" {
  # hum doesn't seem to like caps !! BUG ?
  luapathsearchpaths=lib.escapeShellArgs LuaPathSearchPaths;
  luacpathsearchpaths=lib.escapeShellArgs LuaCPathSearchPaths;
} ''
  cp ${hook} hook.sh
  substituteAllInPlace hook.sh
  mv hook.sh $out
''