2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hiredis
|
|
|
|
, http-parser
|
|
|
|
, jansson
|
|
|
|
, libevent
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "webdis";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.1.22";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nicolasff";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "webdis";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-83nZMqRK1uEWR1xn9lzbTyM0kuAkhmvm999cGu6Yu3k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ hiredis http-parser jansson libevent ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"CONFDIR=${placeholder "out"}/share/webdis"
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Redis HTTP interface with JSON output";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "webdis";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://webd.is/";
|
2023-10-09 19:29:22 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
maintainers = with lib.maintainers; [ wucke13 ];
|
|
|
|
platforms = lib.platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|