about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/database/webdis/default.nix
blob: eec952817e90b0cf65d93bb48424a576053e6f67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ 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;
  };
})