depot/third_party/nixpkgs/pkgs/development/tools/database/webdis/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
760 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, hiredis
, http-parser
, jansson
, libevent
}:
stdenv.mkDerivation (finalAttrs: {
pname = "webdis";
version = "0.1.22";
src = fetchFromGitHub {
owner = "nicolasff";
repo = "webdis";
rev = finalAttrs.version;
hash = "sha256-83nZMqRK1uEWR1xn9lzbTyM0kuAkhmvm999cGu6Yu3k=";
};
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;
};
})