about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/tang/default.nix
blob: 8c5a64f22955fde57e1e8cd1a75a074b3da76b9d (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
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, asciidoc
, jansson, jose, http-parser, systemd
}:

stdenv.mkDerivation rec {
  pname = "tang";
  version = "7";

  src = fetchFromGitHub {
    owner = "latchset";
    repo = pname;
    rev = "v${version}";
    sha256 = "0y5w1jrq5djh9gpy2r98ja7676nfxss17s1dk7jvgblsijx9qsd7";
  };

  configureFlags = [
    "--localstatedir=/var"
    "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
  ];

  nativeBuildInputs = [ autoreconfHook pkg-config asciidoc ];
  buildInputs = [ jansson jose http-parser systemd ];

  outputs = [ "out" "man" ];

  meta = {
    description = "Server for binding data to network presence";
    homepage = "https://github.com/latchset/tang";
    maintainers = with lib.maintainers; [ fpletz ];
    license = lib.licenses.gpl3Plus;
  };
}