fcda1b71b6
Diff: https://github.com/nodejs/llhttp/compare/release/v9.1.2...release/v9.1.3 Changelog: https://github.com/nodejs/llhttp/releases/tag/release/v9.1.3
37 lines
896 B
Nix
37 lines
896 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, testers }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "llhttp";
|
|
version = "9.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nodejs";
|
|
repo = "llhttp";
|
|
rev = "release/v${finalAttrs.version}";
|
|
hash = "sha256-QacjukWkRCuQA4qzUq45521YOBLPuOSKNR1pVxgxe9o=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|