My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/lua-modules/overrides.nix

47 lines
1.2 KiB

{ pkgs, ... }@args:
self: super:
with super;
{
##########################################3
#### manual fixes for generated packages
##########################################3
cqueues = super.cqueues.override({
nativeBuildInputs = [ pkgs.gnum4 ];
buildInputs = [ pkgs.openssl ];
extraConfig = with pkgs; ''
variables={
CRYPTO_INCDIR="${openssl.dev}/include";
CRYPTO_LIBDIR="${openssl.out}/lib";
OPENSSL_INCDIR="${openssl.dev}/include";
OPENSSL_LIBDIR="${openssl.out}/lib";
}
'';
});
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 ];
});
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
'';
});
}