mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
43 lines
787 B
Nix
43 lines
787 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
hiredis,
|
|
http-parser,
|
|
jansson,
|
|
libevent,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "webdis";
|
|
version = "0.1.25";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nicolasff";
|
|
repo = "webdis";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-mal8zeWSIJrA5WgNE+A6AMASTMW0u+P6Hj774d1ZF/8=";
|
|
};
|
|
|
|
buildInputs = [
|
|
hiredis
|
|
http-parser
|
|
jansson
|
|
libevent
|
|
];
|
|
|
|
makeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
"CONFDIR=${placeholder "out"}/share/webdis"
|
|
];
|
|
|
|
meta = {
|
|
description = "Redis HTTP interface with JSON output";
|
|
mainProgram = "webdis";
|
|
homepage = "https://webd.is/";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ wucke13 ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|