Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 29 lines 595 B view raw
1{ lib, stdenv, fetchFromGitHub, cmake }: 2 3stdenv.mkDerivation rec { 4 pname = "llhttp"; 5 version = "8.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "nodejs"; 9 repo = "llhttp"; 10 rev = "release/v${version}"; 11 hash = "sha256-pBGjcT5MiCSJI12TiH1XH5eAzIeylCdP/82L3o38BJo="; 12 }; 13 14 nativeBuildInputs = [ 15 cmake 16 ]; 17 18 cmakeFlags = [ 19 "-DBUILD_STATIC_LIBS=ON" 20 ]; 21 22 meta = with lib; { 23 description = "Port of http_parser to llparse"; 24 homepage = "https://llhttp.org/"; 25 license = licenses.mit; 26 maintainers = [ maintainers.marsam ]; 27 platforms = platforms.all; 28 }; 29}