1{ lib, stdenv
2, fetchFromGitHub
3, pcre
4, pkg-config
5, check
6, autoreconfHook
7}:
8
9stdenv.mkDerivation rec {
10 pname = "r3";
11 version = "1.3.4";
12
13 src = fetchFromGitHub {
14 owner = "c9s";
15 repo = "r3";
16 rev = version;
17 sha256 = "09cixbms817p6nb77wz3rxp0znnac8ybycvsrrzgwlbfn58a3zwl";
18 };
19
20 nativeBuildInputs = [ autoreconfHook pkg-config ];
21
22 buildInputs = [ check ];
23 propagatedBuildInputs = [ pcre ];
24
25 strictDeps = true;
26
27 meta = {
28 description = "A high-performance path dispatching library";
29 homepage = "https://github.com/c9s/r3";
30 license = [ lib.licenses.mit ];
31 };
32
33}