nixpkgs/pkgs/development/libraries/http-parser/default.nix

29 lines
731 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
2021-07-17 18:37:27 +00:00
stdenv.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "http-parser";
2021-07-17 18:37:27 +00:00
version = "2.9.4";
2019-04-23 04:50:40 +00:00
src = fetchFromGitHub {
owner = "nodejs";
repo = "http-parser";
rev = "v${version}";
2020-03-27 03:05:41 +00:00
sha256 = "1vda4dp75pjf5fcph73sy0ifm3xrssrmf927qd1x8g3q46z0cv6c";
};
2018-11-05 02:01:48 +00:00
NIX_CFLAGS_COMPILE = "-Wno-error";
patches = [ ./build-shared.patch ];
2018-11-05 02:01:48 +00:00
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
2019-10-26 15:39:27 +00:00
buildFlags = [ "library" ];
2018-11-05 02:01:48 +00:00
doCheck = true;
checkTarget = "test";
meta = with lib; {
description = "An HTTP message parser written in C";
2020-03-27 03:05:41 +00:00
homepage = "https://github.com/nodejs/http-parser";
2018-11-05 02:01:48 +00:00
maintainers = with maintainers; [ matthewbauer ];
license = licenses.mit;
platforms = platforms.unix;
};
}