maybe fix nixpkgs-unstable lua
This commit is contained in:
parent
5a5c27ab9f
commit
9f58e7b926
@ -6,7 +6,7 @@ let
|
|||||||
inherit (final) lib callPackage;
|
inherit (final) lib callPackage;
|
||||||
};
|
};
|
||||||
inherit (final) fetchpatch;
|
inherit (final) fetchpatch;
|
||||||
lua_no_readline = prev.lua5_3.overrideAttrs(o: {
|
luaHost = prev.lua5_3.overrideAttrs(o: {
|
||||||
name = "lua-tty";
|
name = "lua-tty";
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
makeFlagsArray+=(PLAT="posix" SYSLIBS="-Wl,-E -ldl" CFLAGS="-O2 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN")
|
makeFlagsArray+=(PLAT="posix" SYSLIBS="-Wl,-E -ldl" CFLAGS="-O2 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN")
|
||||||
@ -43,7 +43,6 @@ let
|
|||||||
(if o ? patches then o.patches else []) ++
|
(if o ? patches then o.patches else []) ++
|
||||||
(if patch_needed then [ patch ] else []);
|
(if patch_needed then [ patch ] else []);
|
||||||
});
|
});
|
||||||
lua = let s = lua_no_readline.override { self = s; }; in s;
|
|
||||||
in
|
in
|
||||||
extraPkgs // {
|
extraPkgs // {
|
||||||
# liminix library functions
|
# liminix library functions
|
||||||
@ -204,8 +203,7 @@ extraPkgs // {
|
|||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
||||||
luaFull = prev.lua;
|
lua = crossOnly prev.lua5_3 (_: luaHost);
|
||||||
inherit lua;
|
|
||||||
|
|
||||||
mtdutils = prev.mtdutils.overrideAttrs(o: {
|
mtdutils = prev.mtdutils.overrideAttrs(o: {
|
||||||
patches = (if o ? patches then o.patches else []) ++ [
|
patches = (if o ? patches then o.patches else []) ++ [
|
||||||
|
@ -4,13 +4,15 @@
|
|||||||
writeShellScript,
|
writeShellScript,
|
||||||
writeFennel,
|
writeFennel,
|
||||||
runCommand,
|
runCommand,
|
||||||
|
fennel,
|
||||||
lib,
|
lib,
|
||||||
lua,
|
lua,
|
||||||
pkgsBuildBuild,
|
pkgsBuildBuild,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
run-liminix-vm = pkgsBuildBuild.writeFennel "run-liminix-vm" {
|
writeFennel = pkgsBuildBuild.writeFennel.override { inherit lua; };
|
||||||
packages = [ qemuLim lua.pkgs.luaposix lua.pkgs.fennel ];
|
run-liminix-vm = writeFennel "run-liminix-vm" {
|
||||||
|
packages = [ qemuLim lua.pkgs.luaposix fennel ];
|
||||||
} ./run-liminix-vm.fnl;
|
} ./run-liminix-vm.fnl;
|
||||||
connect = writeShellScript "connect-vm" ''
|
connect = writeShellScript "connect-vm" ''
|
||||||
export PATH="${lib.makeBinPath [ socat ]}:$PATH"
|
export PATH="${lib.makeBinPath [ socat ]}:$PATH"
|
||||||
|
Loading…
Reference in New Issue
Block a user