blob: 39f06104033e4711f67505018d4bc4aa018b903e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ lib, stdenv, fetchFromGitHub, cmake, testers }:
stdenv.mkDerivation (finalAttrs: {
pname = "llhttp";
version = "9.1.0";
src = fetchFromGitHub {
owner = "nodejs";
repo = "llhttp";
rev = "release/v${finalAttrs.version}";
hash = "sha256-DWRo9mVpmty/Ec+pKqPTZqwOlYJD+SmddwEui7P/694=";
};
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;
};
})
|