depot/third_party/nixpkgs/pkgs/development/tools/database/webdis/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

35 lines
734 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 = "A Redis HTTP interface with JSON output";
homepage = "https://webd.is/";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ wucke13 ];
platforms = lib.platforms.unix;
};
})