depot/third_party/nixpkgs/pkgs/development/libraries/llhttp/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

37 lines
896 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, testers }:
stdenv.mkDerivation (finalAttrs: {
pname = "llhttp";
version = "9.2.0";
src = fetchFromGitHub {
owner = "nodejs";
repo = "llhttp";
rev = "release/v${finalAttrs.version}";
hash = "sha256-DX/CuTyvc2OfAVWvlJr6wVHwSuqWmqQt34vM1FEazwE=";
};
outputs = [ "out" "dev" ];
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;
};
})