about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmery Hemingway <emery@dmz.rs>2024-08-23T16·29+0300
committeremery <emery@dmz.rs>2024-08-23T17·23+0000
commit4157fbad43d50cba9ddc3c21d1c6e7b62efe414f (patch)
treefb0f92fdddf376500ad189cf750c9fea46adce45
parent43cf713417ae8a11b005079484d5a87303620832 (diff)
feat(users/emery/pkgs): add syndicate-server r/8567
Change-Id: I3cd358e55a7f0208af8fe8aa990b9f2ee7ffe865
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12299
Reviewed-by: emery <emery@dmz.rs>
Tested-by: BuildkiteCI
-rw-r--r--users/emery/pkgs/syndicate-server.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/users/emery/pkgs/syndicate-server.nix b/users/emery/pkgs/syndicate-server.nix
new file mode 100644
index 000000000000..e8bf73836f24
--- /dev/null
+++ b/users/emery/pkgs/syndicate-server.nix
@@ -0,0 +1,34 @@
+{ pkgs, ... }:
+
+let
+  inherit (pkgs)
+    rustPlatform
+    rust-bin
+    fetchFromGitea
+    pkg-config
+    openssl
+    ;
+in
+
+rustPlatform.buildRustPackage rec {
+  pname = "syndicate-server";
+  version = "0.46.0";
+  src = fetchFromGitea {
+    domain = "git.syndicate-lang.org";
+    owner = "syndicate-lang";
+    repo = "syndicate-rs";
+    rev = "${pname}-v${version}";
+    sha256 = "sha256-bTteZIlBSoQ1o5shgd9NeKVvEhZTyG3i2zbeVojWiO8=";
+  };
+  cargoHash = "sha256-SIpdFXTk6MC/drjCLaaa49BbGsvCMNbPGCfTxAlCo9c=";
+  nativeBuildInputs = [ pkg-config ];
+  buildInputs = [ openssl ];
+
+  RUSTC_BOOTSTRAP = 1;
+
+  meta = {
+    description = "Syndicate broker server";
+    homepage = "https://git.syndicate-lang.org/syndicate-lang/syndicate-rs/";
+    mainProgram = "syndicate-server";
+  };
+}