depot/third_party/nixpkgs/pkgs/development/tools/database/webdis/default.nix
Default email b6f2ab0a42 Project import generated by Copybara.
GitOrigin-RevId: 253aecf69ed7595aaefabde779aa6449195bebb7
2021-08-18 15:19:15 +02:00

28 lines
716 B
Nix

{ lib, stdenv, fetchFromGitHub, hiredis, http-parser, jansson, libevent, fetchpatch }:
stdenv.mkDerivation rec {
pname = "webdis";
version = "0.1.16";
src = fetchFromGitHub {
owner = "nicolasff";
repo = pname;
rev = version;
sha256 = "sha256-I+Nq3kjXoQlwfj8r7oNu6KFE6hnB076M9aJMdwCas3k=";
};
buildInputs = [ hiredis http-parser jansson libevent ];
makeFlags = [
"PREFIX=${placeholder "out"}"
"CONFDIR=${placeholder "out"}/share/webdis"
];
meta = with lib; {
description = "A Redis HTTP interface with JSON output";
homepage = "https://webd.is/";
license = licenses.bsd2;
platforms = platforms.unix;
maintainers = with maintainers; [ wucke13 ];
};
}