forked from DGNum/liminix
remove second copy of lua
This commit is contained in:
parent
64d8602408
commit
e84285e576
1 changed files with 12 additions and 0 deletions
12
overlay.nix
12
overlay.nix
|
@ -2,6 +2,16 @@ final: prev:
|
|||
let
|
||||
extraPkgs = import ./pkgs/default.nix { inherit (final) callPackage; };
|
||||
inherit (final) fetchpatch;
|
||||
lua = prev.lua5_3.overrideAttrs(o: {
|
||||
name = "lua-tty";
|
||||
preBuild = ''
|
||||
makeFlagsArray+=(PLAT="posix" SYSLIBS="-Wl,-E -ldl" CFLAGS="-O2 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN")
|
||||
'';
|
||||
|
||||
makeFlags =
|
||||
builtins.filter (x: (builtins.match "(PLAT|MYLIBS).*" x) == null)
|
||||
o.makeFlags;
|
||||
});
|
||||
in
|
||||
extraPkgs // {
|
||||
strace = prev.strace.override { libunwind = null; };
|
||||
|
@ -17,6 +27,8 @@ extraPkgs // {
|
|||
];
|
||||
});
|
||||
|
||||
lua5_3 = let s = lua.override { self = s; }; in s;
|
||||
|
||||
s6 = prev.s6.overrideAttrs(o:
|
||||
let patch = fetchpatch {
|
||||
# add "p" directive in s6-log
|
||||
|
|
Loading…
Reference in a new issue