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

31 lines
753 B
Nix
Raw Normal View History

2019-04-23 06:50:40 +02:00
{ stdenv, fetchFromGitHub }:
let
2020-02-08 13:17:29 +01:00
version = "2.9.3";
in stdenv.mkDerivation {
2019-08-13 23:52:01 +02:00
pname = "http-parser";
inherit version;
2019-04-23 06:50:40 +02:00
src = fetchFromGitHub {
owner = "nodejs";
repo = "http-parser";
rev = "v${version}";
2020-02-08 13:17:29 +01:00
sha256 = "189zi61vczqgmqjd2myjcjbbi5icrk7ccs0kn6nj8hxqiv5j3811";
};
2018-11-05 03:01:48 +01:00
NIX_CFLAGS_COMPILE = "-Wno-error";
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";
2018-11-05 03:01:48 +01:00
meta = with stdenv.lib; {
description = "An HTTP message parser written in C";
2019-04-23 06:50:40 +02: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;
};
}