# SPDX-FileCopyrightText: 2026 atproto-nix.org # SPDX-License-Identifier: CC0-1.0 OR Unlicense { lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, zstd, stdenv, }: let pname = "microcosm"; version = "v0.0.2"; src = fetchFromGitHub { owner = "at-microcosm"; repo = "microcosm-rs"; rev = "refs/tags/reflector-v0.0.2"; hash = "sha256-GcOV2/LhxQ7Du+Yr9CZIAKiYVBgS90u0/sAxoPHIpWc="; }; meta = { description = "A collection of Rust crates and services for ATProto"; homepage = "https://microcosm.blue"; license = with lib.licenses; [ agpl3Only ]; maintainers = [ { name = "atproto-nix"; email = "contact@atproto-nix.org"; } ]; }; in rustPlatform.buildRustPackage { inherit pname version src meta; cargoHash = "sha256-SmQA25fGk64g8wH65dReZbtlH/O3xbAOBGvSTny9Amc="; nativeBuildInputs = [ pkg-config stdenv.cc ]; buildInputs = [ openssl zstd ]; ZSTD_SYS_USE_PKG_CONFIG = true; LIBCLANG_PATH = "${stdenv.cc.cc.lib}/lib"; }