about summary refs log tree commit diff
path: root/pkgs/servers/tang
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2020-02-09 18:40:03 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2020-02-17 15:14:28 +0100
commit71cc7796e1d52a53a6cbd73bbdb32f6319dbf50c (patch)
treeeab9a334d4a15c6085c0ef36031b7586e4bc48d1 /pkgs/servers/tang
parent37f35dc7790e7ffada83e91e98cbf8c4bdd9ed73 (diff)
tang: init at 7
Diffstat (limited to 'pkgs/servers/tang')
-rw-r--r--pkgs/servers/tang/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/servers/tang/default.nix b/pkgs/servers/tang/default.nix
new file mode 100644
index 0000000000000..5aa261bd8a4cb
--- /dev/null
+++ b/pkgs/servers/tang/default.nix
@@ -0,0 +1,32 @@
+{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, 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 pkgconfig 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;
+  };
+}