luarocks: fix cross-compiling
splicing is not currently working for luaPackages TODO: fix splicing that luarocks-aarch64-unknown-linux-gnu> /nix/store/wfkwbqp5bvipx7inf3rm4xzk2402w82i-stdenv-linux/setup: line 87: /nix/store/vbv8x2awfaa7y3fnxlpbc jh99q31qr3j-lua-aarch64-unknown-linux-gnu-5.2.4/bin/lua: cannot execute binary file: Exec format error
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{lib, stdenv, fetchFromGitHub
|
||||
, buildPackages
|
||||
, curl, makeWrapper, which, unzip
|
||||
, lua
|
||||
# for 'luarocks pack'
|
||||
@@ -43,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||
fi
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles buildPackages.lua ];
|
||||
|
||||
buildInputs = [ lua curl which ];
|
||||
|
||||
@@ -63,7 +64,7 @@ stdenv.mkDerivation rec {
|
||||
installShellCompletion --cmd luarocks --zsh <($out/bin/luarocks completion zsh)
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ zip unzip cmake ];
|
||||
propagatedNativeBuildInputs = [ zip unzip cmake ];
|
||||
|
||||
# unpack hook for src.rock and rockspec files
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
Reference in New Issue
Block a user