summary refs log blame commit diff
path: root/pkgs/development/libraries/http-parser/default.nix
blob: 4b1a695ca551d2db6902e46799b46413a97b831f (plain) (tree)
1
2
3
4
5
6
7
8
                            

   
                    
                        

                        
 




                                                                    

    
                                    
                                     
                                             
                             

                       
 
                           
                                                        
                                                     


                                                     

    
{ stdenv, fetchFromGitHub }:

let
  version = "2.9.2";
in stdenv.mkDerivation {
  pname = "http-parser";
  inherit version;

  src = fetchFromGitHub {
    owner = "nodejs";
    repo = "http-parser";
    rev = "v${version}";
    sha256 = "1qs6x3n2nrcj1wiik5pg5i16inykf7rcfdfdy7rwyzf40pvdl3c2";
  };

  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/nodejs/http-parser;
    maintainers = with maintainers; [ matthewbauer ];
    license = licenses.mit;
    platforms = platforms.unix;
  };
}