2021-10-03 22:10:46 +00:00
|
|
|
{ pkgs }:
|
|
|
|
final: prev:
|
|
|
|
with prev;
|
2019-02-04 11:30:58 +00:00
|
|
|
{
|
|
|
|
##########################################3
|
|
|
|
#### manual fixes for generated packages
|
|
|
|
##########################################3
|
2021-10-03 22:10:46 +00:00
|
|
|
bit32 = prev.bit32.overrideAttrs(oa: {
|
2019-06-20 13:20:02 +00:00
|
|
|
# Small patch in order to no longer redefine a Lua 5.2 function that Luajit
|
|
|
|
# 2.1 also provides, see https://github.com/LuaJIT/LuaJIT/issues/325 for
|
|
|
|
# more
|
|
|
|
patches = [
|
|
|
|
./bit32.patch
|
|
|
|
];
|
2019-06-13 11:01:10 +00:00
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
busted = prev.busted.overrideAttrs(oa: {
|
2019-06-13 11:01:10 +00:00
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace ''${rockspecFilename} \
|
|
|
|
--replace "'lua_cliargs = 3.0-1'," "'lua_cliargs >= 3.0-1',"
|
|
|
|
'';
|
|
|
|
postInstall = ''
|
|
|
|
install -D completions/zsh/_busted $out/share/zsh/site-functions/_busted
|
|
|
|
install -D completions/bash/busted.bash $out/share/bash-completion/completions/busted
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
cqueues = (prev.lib.overrideLuarocks prev.cqueues (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgs.gnum4
|
|
|
|
];
|
|
|
|
externalDeps = [
|
|
|
|
{ name = "CRYPTO"; dep = pkgs.openssl; }
|
|
|
|
{ name = "OPENSSL"; dep = pkgs.openssl; }
|
|
|
|
];
|
|
|
|
disabled = luaOlder "5.1" || luaAtLeast "5.4";
|
2021-10-03 22:10:46 +00:00
|
|
|
})).overrideAttrs(oa: rec {
|
|
|
|
# Parse out a version number without the Lua version inserted
|
|
|
|
version = with pkgs.lib; let
|
|
|
|
version' = prev.cqueues.version;
|
|
|
|
rel = splitVersion version';
|
|
|
|
date = head rel;
|
|
|
|
rev = last (splitString "-" (last rel));
|
|
|
|
in "${date}-${rev}";
|
2019-06-13 11:01:10 +00:00
|
|
|
# Upstream rockspec is pointlessly broken into separate rockspecs, per Lua
|
|
|
|
# version, which doesn't work well for us, so modify it
|
2021-10-03 22:10:46 +00:00
|
|
|
postConfigure = let inherit (prev.cqueues) pname; in ''
|
2019-06-13 11:01:10 +00:00
|
|
|
# 'all' target auto-detects correct Lua version, which is fine for us as
|
|
|
|
# we only have the right one available :)
|
|
|
|
sed -Ei ''${rockspecFilename} \
|
|
|
|
-e 's|lua == 5.[[:digit:]]|lua >= 5.1, <= 5.3|' \
|
|
|
|
-e 's|build_target = "[^"]+"|build_target = "all"|' \
|
|
|
|
-e 's|version = "[^"]+"|version = "${version}"|'
|
|
|
|
specDir=$(dirname ''${rockspecFilename})
|
|
|
|
cp ''${rockspecFilename} "$specDir/${pname}-${version}.rockspec"
|
|
|
|
rockspecFilename="$specDir/${pname}-${version}.rockspec"
|
|
|
|
'';
|
2019-02-05 15:57:53 +00:00
|
|
|
});
|
2019-02-04 11:30:58 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
cyrussasl = prev.lib.overrideLuarocks prev.cyrussasl (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
externalDeps = [
|
|
|
|
{ name = "LIBSASL"; dep = pkgs.cyrus_sasl; }
|
|
|
|
];
|
2019-02-04 11:30:58 +00:00
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
http = prev.http.overrideAttrs(oa: {
|
2019-06-13 11:01:10 +00:00
|
|
|
patches = [
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
name = "invalid-state-progression.patch";
|
|
|
|
url = "https://github.com/daurnimator/lua-http/commit/cb7b59474a.diff";
|
|
|
|
sha256 = "1vmx039n3nqfx50faqhs3wgiw28ws416rhw6vh6srmh9i826dac7";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
/* TODO: separate docs derivation? (pandoc is heavy)
|
|
|
|
nativeBuildInputs = [ pandoc ];
|
|
|
|
makeFlags = [ "-C doc" "lua-http.html" "lua-http.3" ];
|
|
|
|
*/
|
2019-02-04 11:30:58 +00:00
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
ldbus = prev.lib.overrideLuarocks prev.ldbus (drv: {
|
2020-06-15 22:27:16 +00:00
|
|
|
extraVariables = {
|
|
|
|
DBUS_DIR="${pkgs.dbus.lib}";
|
|
|
|
DBUS_ARCH_INCDIR="${pkgs.dbus.lib}/lib/dbus-1.0/include";
|
|
|
|
DBUS_INCDIR="${pkgs.dbus.dev}/include/dbus-1.0";
|
|
|
|
};
|
|
|
|
buildInputs = with pkgs; [
|
|
|
|
dbus
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-11-06 07:38:19 +00:00
|
|
|
ljsyscall = prev.lib.overrideLuarocks prev.ljsyscall (drv: rec {
|
2019-08-24 11:41:55 +00:00
|
|
|
version = "unstable-20180515";
|
|
|
|
# package hasn't seen any release for a long time
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "justincormack";
|
|
|
|
repo = "ljsyscall";
|
|
|
|
rev = "e587f8c55aad3955dddab3a4fa6c1968037b5c6e";
|
|
|
|
sha256 = "06v52agqyziwnbp2my3r7liv245ddmb217zmyqakh0ldjdsr8lz4";
|
|
|
|
};
|
|
|
|
knownRockspec = "rockspec/ljsyscall-scm-1.rockspec";
|
|
|
|
# actually library works fine with lua 5.2
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's/lua == 5.1/lua >= 5.1, < 5.3/' ${knownRockspec}
|
|
|
|
'';
|
|
|
|
disabled = luaOlder "5.1" || luaAtLeast "5.3";
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pkgs.lib; optional (!isLuaJIT) luaffi;
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
lgi = prev.lib.overrideLuarocks prev.lgi (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkgs.pkg-config
|
2019-06-13 11:01:10 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
pkgs.glib
|
2019-10-31 12:10:55 +00:00
|
|
|
pkgs.gobject-introspection
|
2019-06-13 11:01:10 +00:00
|
|
|
];
|
2021-08-30 19:42:52 +00:00
|
|
|
patches = [
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
name = "lgi-find-cairo-through-typelib.patch";
|
|
|
|
url = "https://github.com/psychon/lgi/commit/46a163d9925e7877faf8a4f73996a20d7cf9202a.patch";
|
|
|
|
sha256 = "0gfvvbri9kyzhvq3bvdbj2l6mwvlz040dk4mrd5m9gz79f7w109c";
|
|
|
|
})
|
|
|
|
];
|
2021-08-16 15:44:40 +00:00
|
|
|
|
|
|
|
# there is only a rockspec.in in the repo, the actual rockspec must be generated
|
|
|
|
preConfigure = ''
|
|
|
|
make rock
|
|
|
|
'';
|
2019-02-04 11:30:58 +00:00
|
|
|
});
|
2019-06-13 11:01:10 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
lrexlib-gnu = prev.lib.overrideLuarocks prev.lrexlib-gnu (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgs.gnulib
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
lrexlib-pcre = prev.lib.overrideLuarocks prev.lrexlib-pcre (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
externalDeps = [
|
|
|
|
{ name = "PCRE"; dep = pkgs.pcre; }
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
lrexlib-posix = prev.lib.overrideLuarocks prev.lrexlib-posix (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgs.glibc.dev
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
lua-iconv = prev.lib.overrideLuarocks prev.lua-iconv (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgs.libiconv
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
lua-lsp = prev.lua-lsp.overrideAttrs(oa: {
|
2020-06-06 11:17:12 +00:00
|
|
|
# until Alloyed/lua-lsp#28
|
|
|
|
postConfigure = ''
|
|
|
|
substituteInPlace ''${rockspecFilename} \
|
|
|
|
--replace '"lpeglabel ~> 1.5",' '"lpeglabel >= 1.5",'
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
lua-zlib = prev.lib.overrideLuarocks prev.lua-zlib (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgs.zlib.dev
|
|
|
|
];
|
|
|
|
disabled = luaOlder "5.1" || luaAtLeast "5.4";
|
2019-06-06 03:00:49 +00:00
|
|
|
});
|
2019-06-13 11:01:10 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luadbi-mysql = prev.lib.overrideLuarocks prev.luadbi-mysql (drv: {
|
2020-02-26 00:09:31 +00:00
|
|
|
extraVariables = {
|
|
|
|
# Can't just be /include and /lib, unfortunately needs the trailing 'mysql'
|
2020-09-09 20:52:27 +00:00
|
|
|
MYSQL_INCDIR="${pkgs.libmysqlclient.dev}/include/mysql";
|
2020-02-26 00:09:31 +00:00
|
|
|
MYSQL_LIBDIR="${pkgs.libmysqlclient}/lib/mysql";
|
|
|
|
};
|
2019-06-13 11:01:10 +00:00
|
|
|
buildInputs = [
|
2021-06-04 14:08:41 +00:00
|
|
|
pkgs.mariadb.client
|
2019-09-22 07:38:09 +00:00
|
|
|
pkgs.libmysqlclient
|
2019-06-13 11:01:10 +00:00
|
|
|
];
|
2019-02-05 16:29:07 +00:00
|
|
|
});
|
2019-06-13 11:01:10 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luadbi-postgresql = prev.lib.overrideLuarocks prev.luadbi-postgresql (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgs.postgresql
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luadbi-sqlite3 = prev.lib.overrideLuarocks prev.luadbi-sqlite3 (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
externalDeps = [
|
|
|
|
{ name = "SQLITE"; dep = pkgs.sqlite; }
|
|
|
|
];
|
2019-02-05 16:11:54 +00:00
|
|
|
});
|
2019-06-13 11:01:10 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luaevent = prev.lib.overrideLuarocks prev.luaevent (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
luasocket
|
|
|
|
];
|
|
|
|
externalDeps = [
|
|
|
|
{ name = "EVENT"; dep = pkgs.libevent; }
|
|
|
|
];
|
|
|
|
disabled = luaOlder "5.1" || luaAtLeast "5.4";
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luaexpat = prev.lib.overrideLuarocks prev.luaexpat (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
externalDeps = [
|
|
|
|
{ name = "EXPAT"; dep = pkgs.expat; }
|
|
|
|
];
|
2020-08-09 07:26:07 +00:00
|
|
|
patches = [
|
|
|
|
./luaexpat.patch
|
|
|
|
];
|
2019-06-13 11:01:10 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
# TODO Somehow automatically amend buildInputs for things that need luaffi
|
|
|
|
# but are in luajitPackages?
|
2021-10-03 22:10:46 +00:00
|
|
|
luaffi = prev.lib.overrideLuarocks prev.luaffi (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
# The packaged .src.rock version is pretty old, and doesn't work with Lua 5.3
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "facebook"; repo = "luaffifb";
|
|
|
|
rev = "532c757e51c86f546a85730b71c9fef15ffa633d";
|
|
|
|
sha256 = "1nwx6sh56zfq99rcs7sph0296jf6a9z72mxknn0ysw9fd7m1r8ig";
|
|
|
|
};
|
2021-10-03 22:10:46 +00:00
|
|
|
knownRockspec = with prev.luaffi; "${pname}-${version}.rockspec";
|
2019-06-13 11:01:10 +00:00
|
|
|
disabled = luaOlder "5.1" || luaAtLeast "5.4" || isLuaJIT;
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luaossl = prev.lib.overrideLuarocks prev.luaossl (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
externalDeps = [
|
|
|
|
{ name = "CRYPTO"; dep = pkgs.openssl; }
|
|
|
|
{ name = "OPENSSL"; dep = pkgs.openssl; }
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luasec = prev.lib.overrideLuarocks prev.luasec (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
externalDeps = [
|
|
|
|
{ name = "OPENSSL"; dep = pkgs.openssl; }
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luasql-sqlite3 = prev.lib.overrideLuarocks prev.luasql-sqlite3 (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
externalDeps = [
|
|
|
|
{ name = "SQLITE"; dep = pkgs.sqlite; }
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luasystem = prev.lib.overrideLuarocks prev.luasystem (drv: { buildInputs = [ pkgs.glibc.out ]; });
|
2019-06-13 11:01:10 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luazip = prev.lib.overrideLuarocks prev.luazip (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgs.zziplib
|
|
|
|
];
|
2019-06-05 04:21:38 +00:00
|
|
|
});
|
2019-06-13 11:01:10 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
lua-yajl = prev.lib.overrideLuarocks prev.lua-yajl (drv: {
|
2019-09-05 18:04:27 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgs.yajl
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
luuid = (prev.lib.overrideLuarocks prev.luuid (drv: {
|
2019-06-13 11:01:10 +00:00
|
|
|
externalDeps = [
|
|
|
|
{ name = "LIBUUID"; dep = pkgs.libuuid; }
|
|
|
|
];
|
2021-10-03 22:10:46 +00:00
|
|
|
disabled = luaOlder "5.1" || (luaAtLeast "5.4");
|
|
|
|
})).overrideAttrs(oa: {
|
|
|
|
meta = oa.meta // {
|
2019-06-13 11:01:10 +00:00
|
|
|
platforms = pkgs.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
# Trivial patch to make it work in both 5.1 and 5.2. Basically just the
|
|
|
|
# tiny diff between the two upstream versions placed behind an #if.
|
|
|
|
# Upstreams:
|
|
|
|
# 5.1: http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/luuid.tar.gz
|
|
|
|
# 5.2: http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/5.2/luuid.tar.gz
|
2019-10-27 13:03:25 +00:00
|
|
|
patchFlags = [ "-p2" ];
|
2019-06-13 11:01:10 +00:00
|
|
|
patches = [
|
|
|
|
./luuid.patch
|
|
|
|
];
|
2021-10-03 22:10:46 +00:00
|
|
|
postConfigure = let inherit (prev.luuid) version pname; in ''
|
2019-06-13 11:01:10 +00:00
|
|
|
sed -Ei ''${rockspecFilename} -e 's|lua >= 5.2|lua >= 5.1,|'
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2019-10-01 22:08:13 +00:00
|
|
|
|
2022-03-29 01:46:00 +00:00
|
|
|
# as advised in https://github.com/luarocks/luarocks/issues/1402
|
|
|
|
# we shouldn't use luarocks machinery to build complex cmake components
|
|
|
|
libluv = pkgs.stdenv.mkDerivation {
|
|
|
|
|
|
|
|
inherit (prev.luv) pname version meta src;
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
"-DBUILD_MODULE=OFF"
|
|
|
|
"-DWITH_SHARED_LIBUV=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ pkgs.libuv ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgs.pkg-config pkgs.fixDarwinDylibNames pkgs.cmake ];
|
|
|
|
# Fixup linking libluv.dylib, for some reason it's not linked against lua correctly.
|
|
|
|
NIX_LDFLAGS = pkgs.lib.optionalString pkgs.stdenv.isDarwin
|
|
|
|
(if isLuaJIT then "-lluajit-${lua.luaversion}" else "-llua");
|
|
|
|
};
|
2019-08-01 11:53:56 +00:00
|
|
|
|
2022-03-29 01:46:00 +00:00
|
|
|
luv = prev.lib.overrideLuarocks prev.luv (drv: {
|
|
|
|
|
|
|
|
buildInputs = [ pkgs.pkg-config pkgs.libuv ];
|
2019-10-01 22:08:13 +00:00
|
|
|
|
2022-03-29 01:46:00 +00:00
|
|
|
doInstallCheck = true;
|
2019-10-01 22:08:13 +00:00
|
|
|
|
2022-03-29 01:46:00 +00:00
|
|
|
# Use system libuv instead of building local and statically linking
|
|
|
|
extraVariables = {
|
|
|
|
"WITH_SHARED_LIBUV" = "ON";
|
2019-08-01 11:53:56 +00:00
|
|
|
};
|
2022-03-29 01:46:00 +00:00
|
|
|
|
|
|
|
# we unset the LUA_PATH since the hook erases the interpreter defaults (To fix)
|
|
|
|
installCheckPhase = ''
|
|
|
|
unset LUA_PATH
|
|
|
|
rm tests/test-{dns,thread}.lua
|
|
|
|
lua tests/run.lua
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.libluv = final.libluv;
|
|
|
|
|
2019-02-17 12:38:23 +00:00
|
|
|
});
|
2019-04-30 08:35:29 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
lyaml = prev.lib.overrideLuarocks prev.lyaml (oa: {
|
2020-06-06 11:17:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
pkgs.libyaml
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
mpack = prev.lib.overrideLuarocks prev.mpack (drv: {
|
2020-04-26 19:28:40 +00:00
|
|
|
buildInputs = [ pkgs.libmpack ];
|
|
|
|
# the rockspec doesn't use the makefile so you may need to export more flags
|
|
|
|
USE_SYSTEM_LUA = "yes";
|
|
|
|
USE_SYSTEM_MPACK = "yes";
|
|
|
|
});
|
2019-08-01 11:53:56 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
rapidjson = prev.rapidjson.overrideAttrs(oa: {
|
2019-04-30 08:35:29 +00:00
|
|
|
preBuild = ''
|
|
|
|
sed -i '/set(CMAKE_CXX_FLAGS/d' CMakeLists.txt
|
|
|
|
sed -i '/set(CMAKE_C_FLAGS/d' CMakeLists.txt
|
|
|
|
'';
|
|
|
|
});
|
2020-06-06 11:17:12 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
readline = (prev.lib.overrideLuarocks prev.readline (drv: {
|
2020-07-01 15:58:50 +00:00
|
|
|
unpackCmd = ''
|
|
|
|
unzip "$curSrc"
|
|
|
|
tar xf *.tar.gz
|
|
|
|
'';
|
2021-10-03 22:10:46 +00:00
|
|
|
propagatedBuildInputs = prev.readline.propagatedBuildInputs ++ [ pkgs.readline.out ];
|
2020-07-01 15:58:50 +00:00
|
|
|
extraVariables = rec {
|
|
|
|
READLINE_INCDIR = "${pkgs.readline.dev}/include";
|
|
|
|
HISTORY_INCDIR = READLINE_INCDIR;
|
|
|
|
};
|
|
|
|
})).overrideAttrs (old: {
|
|
|
|
# Without this, source root is wrongly set to ./readline-2.6/doc
|
|
|
|
setSourceRoot = ''
|
2021-08-03 16:55:47 +00:00
|
|
|
sourceRoot=./readline-3.0
|
2020-07-01 15:58:50 +00:00
|
|
|
'';
|
|
|
|
});
|
2021-07-30 00:25:15 +00:00
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
std-_debug = prev.std-_debug.overrideAttrs(oa: {
|
2021-08-30 19:42:52 +00:00
|
|
|
# run make to generate lib/std/_debug/version.lua
|
|
|
|
preConfigure = ''
|
|
|
|
make all
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2021-10-03 22:10:46 +00:00
|
|
|
std-normalize = prev.std-normalize.overrideAttrs(oa: {
|
2021-08-30 19:42:52 +00:00
|
|
|
# run make to generate lib/std/_debug/version.lua
|
|
|
|
preConfigure = ''
|
|
|
|
make all
|
|
|
|
'';
|
|
|
|
});
|
2021-07-30 00:25:15 +00:00
|
|
|
|
2021-09-11 22:01:49 +00:00
|
|
|
# TODO just while testing, remove afterwards
|
|
|
|
# toVimPlugin should do it instead
|
2021-10-03 22:10:46 +00:00
|
|
|
gitsigns-nvim = prev.gitsigns-nvim.overrideAttrs(oa: {
|
2021-09-11 22:01:49 +00:00
|
|
|
nativeBuildInputs = oa.nativeBuildInputs or [] ++ [ pkgs.vimUtils.vimGenDocHook ];
|
|
|
|
});
|
|
|
|
|
2021-07-30 00:25:15 +00:00
|
|
|
# aliases
|
2021-10-03 22:10:46 +00:00
|
|
|
cjson = prev.lua-cjson;
|
2019-05-01 07:43:59 +00:00
|
|
|
}
|