2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-03-07 11:11:10 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pcre
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-03-07 11:11:10 +00:00
|
|
|
, check
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "r3";
|
|
|
|
version = "1.3.4";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c9s";
|
|
|
|
repo = "r3";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "09cixbms817p6nb77wz3rxp0znnac8ybycvsrrzgwlbfn58a3zwl";
|
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2019-03-07 11:11:10 +00:00
|
|
|
|
2019-03-07 12:30:58 +00:00
|
|
|
buildInputs = [ check ];
|
|
|
|
propagatedBuildInputs = [ pcre ];
|
2019-03-07 11:11:10 +00:00
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A high-performance path dispatching library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/c9s/r3";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = [ lib.licenses.mit ];
|
2019-03-07 11:11:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|