lua*Packages.http: 0.3 -> 0.4 (and generate)
One bugfix patch is included - merged upstream but not released yet. knot-resolver wrapper would need to add binaryheap explicitly, so it's migrated to the automatic LUA path discovery instead.
This commit is contained in:
@@ -130,6 +130,26 @@ fifo = buildLuarocksPackage {
|
||||
};
|
||||
};
|
||||
};
|
||||
http = buildLuarocksPackage {
|
||||
pname = "http";
|
||||
version = "0.3-0";
|
||||
|
||||
src = fetchurl {
|
||||
url = https://luarocks.org/http-0.3-0.src.rock;
|
||||
sha256 = "0vvl687bh3cvjjwbyp9cphqqccm3slv4g7y3h03scp3vpq9q4ccq";
|
||||
};
|
||||
disabled = ( luaOlder "5.1");
|
||||
propagatedBuildInputs = [ lua compat53 bit32 cqueues luaossl basexx lpeg lpeg_patterns binaryheap fifo ];
|
||||
buildType = "builtin";
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/daurnimator/lua-http";
|
||||
description="HTTP library for Lua";
|
||||
license = {
|
||||
fullName = "MIT";
|
||||
};
|
||||
};
|
||||
};
|
||||
inspect = buildLuarocksPackage {
|
||||
pname = "inspect";
|
||||
version = "3.1.1-0";
|
||||
|
||||
@@ -81,4 +81,21 @@ with super;
|
||||
maintainers = with pkgs.lib.maintainers; oa.meta.maintainers ++ [ vcunat ];
|
||||
};
|
||||
});
|
||||
|
||||
http = super.http.overrideAttrs(oa: {
|
||||
patches = oa.patches or [] ++ [
|
||||
(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" ];
|
||||
*/
|
||||
meta = oa.meta // {
|
||||
maintainers = with pkgs.lib.maintainers; oa.meta.maintainers ++ [ vcunat ];
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user