diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/llhttp/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/llhttp/default.nix | 29 |
1 files changed, 29 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..90f274c9e560 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/llhttp/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + pname = "llhttp"; + version = "8.1.0"; + + src = fetchFromGitHub { + owner = "nodejs"; + repo = "llhttp"; + rev = "release/v${version}"; + hash = "sha256-pBGjcT5MiCSJI12TiH1XH5eAzIeylCdP/82L3o38BJo="; + }; + + 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; + }; +} |