2021-01-23 19:26:19 +07:00
|
|
|
{ lib, stdenv, fetchFromGitHub, hiredis, http-parser, jansson, libevent, fetchpatch }:
|
2020-02-20 22:50:37 +01:00
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "webdis";
|
2021-05-15 18:32:20 +02:00
|
|
|
version = "0.1.15";
|
2020-02-20 22:50:37 +01:00
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "nicolasff";
|
|
|
|
|
repo = pname;
|
|
|
|
|
rev = version;
|
2021-05-15 18:32:20 +02:00
|
|
|
sha256 = "sha256-ViU/CKkmBY8WwQq/oJ2/qETqr2k8JNFtNPhozw5BmEc=";
|
2020-02-20 22:50:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
buildInputs = [ hiredis http-parser jansson libevent ];
|
|
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
|
"CONFDIR=${placeholder "out"}/share/webdis"
|
|
|
|
|
];
|
|
|
|
|
|
2021-01-23 19:26:19 +07:00
|
|
|
meta = with lib; {
|
2020-02-20 22:50:37 +01:00
|
|
|
description = "A Redis HTTP interface with JSON output";
|
|
|
|
|
homepage = "https://webd.is/";
|
|
|
|
|
license = licenses.bsd2;
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
maintainers = with maintainers; [ wucke13 ];
|
|
|
|
|
};
|
|
|
|
|
}
|