about summary refs log tree commit diff
path: root/pkgs/servers/fedigroups
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@fgaz.me>2021-11-04 13:33:43 +0100
committerFrancesco Gazzetta <fgaz@fgaz.me>2021-11-04 17:30:11 +0100
commit181dd7e7422a13dc5449d5a24590c1bdbf58db23 (patch)
tree8e5545d0c0a38d30a219e44eb4d1cbd57e3a3d2d /pkgs/servers/fedigroups
parent642292c85d1589005279dd2f41c511cf58f5f3b2 (diff)
fedigroups: init at 0.4.4
Diffstat (limited to 'pkgs/servers/fedigroups')
-rw-r--r--pkgs/servers/fedigroups/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/servers/fedigroups/default.nix b/pkgs/servers/fedigroups/default.nix
new file mode 100644
index 0000000000000..fe3f2f351ace6
--- /dev/null
+++ b/pkgs/servers/fedigroups/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, stdenv
+, fetchFromGitea
+, rustPlatform
+, pkg-config
+, openssl
+, Security
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "fedigroups";
+  version = "0.4.4";
+
+  src = fetchFromGitea {
+    domain = "git.ondrovo.com";
+    owner = "MightyPork";
+    repo = "group-actor";
+    rev = "v${version}";
+    sha256 = "sha256-1WqIQp16bs+UB+NSEZn0JH6NOkuAx8iUfho4roA2B00=";
+  };
+
+  cargoHash = "sha256-88ToWRkBDXUvnEB2K6q5f3+IMuC3zNzrXrVFZnjbA9o=";
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    openssl
+  ] ++ lib.optional stdenv.isDarwin Security;
+
+  meta = with lib; {
+    homepage = "https://git.ondrovo.com/MightyPork/group-actor#fedi-groups";
+    downloadPage = "https://git.ondrovo.com/MightyPork/group-actor/releases";
+    description = "An approximation of groups usable with Fediverse software that implements the Mastodon client API";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fgaz ];
+    platforms = platforms.all;
+  };
+}