2019-02-04 12:30:58 +01:00
|
|
|
{ pkgs, ... }@args:
|
|
|
|
self: super:
|
|
|
|
with super;
|
|
|
|
{
|
|
|
|
##########################################3
|
|
|
|
#### manual fixes for generated packages
|
|
|
|
##########################################3
|
2019-02-05 16:57:53 +01:00
|
|
|
lgi = super.lgi.overrideAttrs(oa: {
|
|
|
|
nativeBuildInputs = [ pkgs.pkgconfig ];
|
|
|
|
buildInputs = with pkgs; oa.buildInputs ++ [ glib gobjectIntrospection];
|
|
|
|
patches = [
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
name = "lgi-find-cairo-through-typelib.patch";
|
|
|
|
url = "https://github.com/psychon/lgi/commit/46a163d9925e7877faf8a4f73996a20d7cf9202a.patch";
|
|
|
|
sha256 = "0gfvvbri9kyzhvq3bvdbj2l6mwvlz040dk4mrd5m9gz79f7w109c";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
});
|
2019-02-04 12:30:58 +01:00
|
|
|
|
|
|
|
ltermbox = super.ltermbox.override( {
|
|
|
|
disabled = !isLua51 || isLuaJIT;
|
|
|
|
});
|
|
|
|
|
|
|
|
lua-cmsgpack = super.lua-cmsgpack.override({
|
|
|
|
# TODO this should work with luajit once we fix luajit headers ?
|
|
|
|
disabled = (!isLua51) || isLuaJIT;
|
|
|
|
});
|
|
|
|
|
|
|
|
lrexlib-posix = super.lrexlib-posix.override({
|
|
|
|
buildInputs = [ pkgs.glibc.dev ];
|
|
|
|
});
|
|
|
|
lrexlib-gnu = super.lrexlib-gnu.override({
|
|
|
|
buildInputs = [ pkgs.gnulib ];
|
|
|
|
});
|
2019-02-05 17:29:07 +01:00
|
|
|
luaevent = super.luaevent.override({
|
|
|
|
buildInputs = with pkgs; [ libevent.dev libevent ];
|
|
|
|
propagatedBuildInputs = [ luasocket ];
|
|
|
|
extraConfig = ''
|
|
|
|
variables={
|
|
|
|
EVENT_INCDIR="${pkgs.libevent.dev}/include";
|
|
|
|
EVENT_LIBDIR="${pkgs.libevent}/lib";
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
disabled= luaOlder "5.1" || luaAtLeast "5.4" || isLuaJIT;
|
|
|
|
});
|
2019-02-05 17:11:54 +01:00
|
|
|
lua-iconv = super.lua-iconv.override({
|
|
|
|
buildInputs = [ pkgs.libiconv ];
|
|
|
|
});
|
2019-02-04 12:30:58 +01:00
|
|
|
luv = super.luv.overrideAttrs(oa: {
|
|
|
|
propagatedBuildInputs = oa.propagatedBuildInputs ++ [ pkgs.libuv ];
|
|
|
|
});
|
|
|
|
|
|
|
|
busted = super.busted.overrideAttrs(oa: {
|
|
|
|
postInstall = ''
|
|
|
|
install -D completions/zsh/_busted $out/share/zsh/site-functions/_busted
|
|
|
|
'';
|
|
|
|
});
|
2019-02-17 13:38:23 +01:00
|
|
|
|
|
|
|
luuid = super.luuid.override({
|
|
|
|
buildInputs = [ pkgs.libuuid ];
|
|
|
|
extraConfig = ''
|
|
|
|
variables = {
|
|
|
|
LIBUUID_INCDIR="${pkgs.lib.getDev pkgs.libuuid}/include";
|
|
|
|
LIBUUID_LIBDIR="${pkgs.lib.getLib pkgs.libuuid}/lib";
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
meta = {
|
|
|
|
platforms = pkgs.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
});
|
2019-02-04 12:30:58 +01:00
|
|
|
}
|