Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
15 lines
479 B
Bash
15 lines
479 B
Bash
# luarocks installs data in a non-overridable location. Until a proper luarocks patch,
|
|
# we move the files around ourselves
|
|
echo "Sourcing luarocks-move-data-hook.sh"
|
|
|
|
luarocksMoveDataHook () {
|
|
echo "Executing luarocksMoveDataHook"
|
|
if [ -d "$out/$rocksSubdir" ]; then
|
|
cp -rfv "$out/$rocksSubdir/$pname/$rockspecVersion/." "$out"
|
|
fi
|
|
|
|
echo "Finished executing luarocksMoveDataHook"
|
|
}
|
|
|
|
echo "Using luarocksMoveDataHook"
|
|
preFixupHooks+=(luarocksMoveDataHook)
|