1{ lib, stdenv, fetchFromGitHub, hiredis, http-parser, jansson, libevent, fetchpatch }:
2
3stdenv.mkDerivation rec {
4 pname = "webdis";
5 version = "0.1.20";
6
7 src = fetchFromGitHub {
8 owner = "nicolasff";
9 repo = pname;
10 rev = version;
11 sha256 = "sha256-QvPawRYmk5HcE4XnI4B4G7AAaN/8cFov9lOa2e++g4A=";
12 };
13
14 buildInputs = [ hiredis http-parser jansson libevent ];
15
16 makeFlags = [
17 "PREFIX=${placeholder "out"}"
18 "CONFDIR=${placeholder "out"}/share/webdis"
19 ];
20
21 meta = with lib; {
22 description = "A Redis HTTP interface with JSON output";
23 homepage = "https://webd.is/";
24 license = licenses.bsd2;
25 platforms = platforms.unix;
26 maintainers = with maintainers; [ wucke13 ];
27 };
28}