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

28 lines
731 B
Nix
Raw Normal View History

2018-11-05 02:01:48 +00:00
{ stdenv, fetchurl }:
let
version = "2.8.1";
in stdenv.mkDerivation {
name = "http-parser-${version}";
src = fetchurl {
url = "https://github.com/joyent/http-parser/archive/v${version}.tar.gz";
sha256 = "15ids8k2f0xhnnxh4m85w2f78pg5ndiwrpl24kyssznnp1l5yqai";
};
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)" ];
buildFlags = "library";
doCheck = true;
checkTarget = "test";
2018-11-05 02:01:48 +00:00
meta = with stdenv.lib; {
description = "An HTTP message parser written in C";
homepage = https://github.com/joyent/http-parser;
2018-11-05 02:01:48 +00:00
maintainers = with maintainers; [ matthewbauer ];
license = licenses.mit;
platforms = platforms.unix;
};
}