1 { buildPythonApplication
16 path = lib.makeBinPath [
17 nix nix-prefetch-scripts luarocks-nix
28 buildPythonApplication {
29 pname = "luarocks-packages-updater";
36 python3Packages.wrapPython
38 propagatedBuildInputs = [
39 python3Packages.gitpython
46 mkdir -p $out/bin $out/lib
47 cp ${./updater.py} $out/bin/luarocks-packages-updater
48 cp ${../../../../maintainers/scripts/pluginupdate.py} $out/lib/pluginupdate.py
51 makeWrapperArgs+=( --prefix PATH : "${path}" --prefix PYTHONPATH : "$out/lib" \
52 --set LUA_51 ${lua5_1} \
53 --set LUA_52 ${lua5_2} \
54 --set LUA_53 ${lua5_3} \
55 --set LUA_54 ${lua5_4}
57 wrapPythonProgramsIn "$out"
61 export PYTHONPATH="maintainers/scripts:$PYTHONPATH"
62 export PATH="${path}:$PATH"
65 meta.mainProgram = "luarocks-packages-updater";