diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/llhttp')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/llhttp/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/llhttp/default.nix b/nixpkgs/pkgs/development/libraries/llhttp/default.nix new file mode 100644 index 000000000000..8aac286c80ac --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/llhttp/default.nix @@ -0,0 +1,35 @@ +{ lib, stdenv, fetchFromGitHub, cmake, testers }: + +stdenv.mkDerivation (finalAttrs: { + pname = "llhttp"; + version = "9.1.2"; + + src = fetchFromGitHub { + owner = "nodejs"; + repo = "llhttp"; + rev = "release/v${finalAttrs.version}"; + hash = "sha256-kW6u9ETZJcJBh150chfE3SEwFpT7evZ0cqz8caM7fbQ="; + }; + + nativeBuildInputs = [ + cmake + ]; + + cmakeFlags = [ + "-DBUILD_STATIC_LIBS=ON" + ]; + + passthru.tests.pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + }; + + meta = with lib; { + description = "Port of http_parser to llparse"; + homepage = "https://llhttp.org/"; + changelog = "https://github.com/nodejs/llhttp/releases/tag/release/v${finalAttrs.version}"; + license = licenses.mit; + pkgConfigModules = [ "libllhttp" ]; + maintainers = [ maintainers.marsam ]; + platforms = platforms.all; + }; +}) |