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