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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.0 KiB
Nix
Raw Normal View History

2022-02-07 03:47:56 +03:00
{ lib, stdenv, fetchFromGitHub, fetchpatch }:
2021-07-17 21:37:27 +03:00
stdenv.mkDerivation rec {
2019-08-14 00:52:01 +03:00
pname = "http-parser";
2021-07-17 21:37:27 +03:00
version = "2.9.4";
2019-04-23 07:50:40 +03:00
src = fetchFromGitHub {
owner = "nodejs";
repo = "http-parser";
rev = "v${version}";
2020-03-27 06:05:41 +03:00
sha256 = "1vda4dp75pjf5fcph73sy0ifm3xrssrmf927qd1x8g3q46z0cv6c";
};
2018-11-05 05:01:48 +03:00
NIX_CFLAGS_COMPILE = "-Wno-error";
2022-02-07 03:47:56 +03:00
patches = [
./build-shared.patch
2022-05-13 17:08:25 +03:00
] ++ lib.optionals stdenv.isAarch32 [
2022-02-07 03:47:56 +03:00
# https://github.com/nodejs/http-parser/pull/510
(fetchpatch {
url = "https://github.com/nodejs/http-parser/commit/4f15b7d510dc7c6361a26a7c6d2f7c3a17f8d878.patch";
sha256 = "sha256-rZZMJeow3V1fTnjadRaRa+xTq3pdhZn/eJ4xjxEDoU4=";
})
];
2018-11-05 05:01:48 +03:00
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
2019-10-26 18:39:27 +03:00
buildFlags = [ "library" ];
2018-11-05 05:01:48 +03:00
doCheck = true;
checkTarget = "test";
meta = with lib; {
description = "An HTTP message parser written in C";
2020-03-27 06:05:41 +03:00
homepage = "https://github.com/nodejs/http-parser";
2018-11-05 05:01:48 +03:00
maintainers = with maintainers; [ matthewbauer ];
license = licenses.mit;
platforms = platforms.unix;
};
}