From 9f54821839aa92156837dcfb63a8bb85a85ce464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 18 Jul 2022 23:48:29 +0200 Subject: [PATCH] portunus: init at 1.1.0-beta.2 --- pkgs/servers/portunus/default.nix | 31 +++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/servers/portunus/default.nix diff --git a/pkgs/servers/portunus/default.nix b/pkgs/servers/portunus/default.nix new file mode 100644 index 000000000000..c0ee915c7bbe --- /dev/null +++ b/pkgs/servers/portunus/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "portunus"; + version = "1.1.0-beta.2"; + + src = fetchFromGitHub { + owner = "majewsky"; + repo = "portunus"; + rev = "v${version}"; + sha256 = "sha256-hGOMbaEWecgQvpk/2E8mcJZ9QMjllIhS3RBr7PKnbjQ="; + }; + + vendorSha256 = null; + + postInstall = '' + mv $out/bin/{,portunus-}orchestrator + mv $out/bin/{,portunus-}server + ''; + + meta = with lib; { + description = "Self-contained user/group management and authentication service"; + homepage = "https://github.com/majewsky/portunus"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ majewsky ] ++ teams.c3d2.members; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 16995579c690..86a44bc906f2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22306,6 +22306,8 @@ with pkgs; podgrab = callPackage ../servers/misc/podgrab { }; + portunus = callPackage ../servers/portunus { }; + prosody = callPackage ../servers/xmpp/prosody { withExtraLibs = []; withExtraLuaPackages = _: [];