depot/third_party/nixpkgs/pkgs/development/libraries/llhttp/default.nix

30 lines
595 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "llhttp";
version = "8.1.1";
src = fetchFromGitHub {
owner = "nodejs";
repo = "llhttp";
rev = "release/v${version}";
hash = "sha256-srAHKyYvdEGtjV7BwcKQArwAChRoZqTCfa/RefI/8wQ=";
};
nativeBuildInputs = [
cmake
];
cmakeFlags = [
"-DBUILD_STATIC_LIBS=ON"
];
meta = with lib; {
description = "Port of http_parser to llparse";
homepage = "https://llhttp.org/";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}