mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
28 lines
731 B
Nix
28 lines
731 B
Nix
{ 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";
|
|
};
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
|
patches = [ ./build-shared.patch ];
|
|
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
|
buildFlags = "library";
|
|
doCheck = true;
|
|
checkTarget = "test";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "An HTTP message parser written in C";
|
|
homepage = https://github.com/joyent/http-parser;
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|