From 56fab16fa9ed795637b96cdd5688d58cf178f46a Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 27 Aug 2024 08:05:16 +0300 Subject: [PATCH] syndicate-server: init 0.46.0 https://git.syndicate-lang.org/syndicate-lang/syndicate-rs --- pkgs/by-name/sy/syndicate-server/package.nix | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/sy/syndicate-server/package.nix diff --git a/pkgs/by-name/sy/syndicate-server/package.nix b/pkgs/by-name/sy/syndicate-server/package.nix new file mode 100644 index 0000000000000..581ba32caf147 --- /dev/null +++ b/pkgs/by-name/sy/syndicate-server/package.nix @@ -0,0 +1,39 @@ +{ + lib, + rustPlatform, + fetchFromGitea, + pkg-config, + openssl, + versionCheckHook, +}: + +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 + versionCheckHook + ]; + buildInputs = [ openssl ]; + + RUSTC_BOOTSTRAP = 1; + + doInstallCheck = true; + + meta = { + description = "Syndicate broker server"; + homepage = "http://synit.org/"; + license = lib.licenses.asl20; + mainProgram = "syndicate-server"; + maintainers = with lib.maintainers; [ ehmry ]; + platforms = lib.platforms.linux; + }; +}