{ lib, rustPlatform, fetchFromGitHub, openssl, libpq, pkg-config, }: rustPlatform.buildRustPackage { pname = "rsky-pds"; version = "0-unstable-2025-08-04"; src = fetchFromGitHub { owner = "blacksky-algorithms"; repo = "rsky"; rev = "6a8e7dab7e424b42e946e40831166176520837d4"; hash = "sha256-iqSaej2ibpmTR4YKq0tM9mLHtWK3l5GMzGOrN64MKZA="; }; cargoHash = "sha256-m5MtoJiJANAzpCOMNgrNMu7YURNJpV7N/ab8nNXFe58="; cargoBuildFlags = [ "--package" "rsky-pds" ]; cargoTestFlags = [ "--package" "rsky-pds" # skip tests that depend on docker running "-- --skip=test_create_invite_code_and_account" "--skip=test_create_session" "--skip=test_robots_txt" "--skip=test_index" "--skip=test_create_invite_code" ]; buildInputs = [ openssl libpq ]; nativeBuildInputs = [ pkg-config ]; meta = { homepage = "https://blackskyweb.xyz"; description = "Rust implmentation of an atproto pds"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ isabelroses ]; mainProgram = "rsky-pds"; }; }