Merge pull request #73946 from Ericson2314/fix-lua-env
lua wrapper: Fix bash error
This commit is contained in:
commit
505dcb3b73
@ -11,7 +11,7 @@
|
|||||||
let
|
let
|
||||||
env = let
|
env = let
|
||||||
paths = requiredLuaModules (extraLibs ++ [ lua ] );
|
paths = requiredLuaModules (extraLibs ++ [ lua ] );
|
||||||
in buildEnv {
|
in (buildEnv {
|
||||||
name = "${lua.name}-env";
|
name = "${lua.name}-env";
|
||||||
|
|
||||||
inherit paths;
|
inherit paths;
|
||||||
@ -20,12 +20,6 @@ let
|
|||||||
|
|
||||||
# we create wrapper for the binaries in the different packages
|
# we create wrapper for the binaries in the different packages
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
|
|
||||||
. "${makeWrapper}/nix-support/setup-hook"
|
|
||||||
|
|
||||||
# get access to lua functions
|
|
||||||
. ${lua}/nix-support/setup-hook
|
|
||||||
|
|
||||||
if [ -L "$out/bin" ]; then
|
if [ -L "$out/bin" ]; then
|
||||||
unlink "$out/bin"
|
unlink "$out/bin"
|
||||||
fi
|
fi
|
||||||
@ -68,5 +62,8 @@ let
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
}).overrideAttrs (_: {
|
||||||
|
# Add extra deps needed for postBuild hook.
|
||||||
|
nativeBuildInputs = [ makeWrapper lua ];
|
||||||
|
});
|
||||||
in env
|
in env
|
||||||
|
Loading…
x
Reference in New Issue
Block a user