diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/tang/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/tang/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/tang/default.nix b/nixpkgs/pkgs/servers/tang/default.nix new file mode 100644 index 000000000000..5aa261bd8a4c --- /dev/null +++ b/nixpkgs/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; + }; +} |