2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, libiconv
|
|
|
|
, darwin
|
|
|
|
, protobuf
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nostr-rs-relay";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.8.13";
|
2023-05-24 13:37:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scsibug";
|
|
|
|
repo = "nostr-rs-relay";
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-YgYi387b1qlGpjupqgGuLx8muHJ1iMx1sH82UW3TsQg=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
cargoHash = "sha256-CwyX8VlzH/y5LZtaMDd/4yWGCZLczc9bW4AqUzQFFKU=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
buildInputs = [ openssl.dev ]
|
|
|
|
++ lib.optionals stdenv.isDarwin [
|
|
|
|
libiconv
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config # for openssl
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Nostr relay written in Rust";
|
|
|
|
homepage = "https://sr.ht/~gheartsfield/nostr-rs-relay/";
|
|
|
|
changelog = "https://github.com/scsibug/nostr-rs-relay/releases/tag/${version}";
|
|
|
|
maintainers = with maintainers; [ jurraca ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|