Skip to content

Commit

Permalink
Merge pull request NixOS#227946 from jurraca/nostr-rs-relay
Browse files Browse the repository at this point in the history
nostr-rs-relay: init at 0.8.9
  • Loading branch information
SuperSandro2000 authored May 9, 2023
2 parents 2be2bef + ab7fe9c commit 688e2b8
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7914,6 +7914,12 @@
githubId = 2469618;
name = "Junji Hashimoto";
};
jurraca = {
email = "[email protected]";
github = "jurraca";
githubId = 5124422;
name = "Julien Urraca";
};
justinas = {
email = "[email protected]";
github = "justinas";
Expand Down
43 changes: 43 additions & 0 deletions pkgs/servers/nostr-rs-relay/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, openssl
, pkg-config
, libiconv
, darwin
, protobuf
}:

rustPlatform.buildRustPackage rec {
pname = "nostr-rs-relay";
version = "0.8.9";
src = fetchFromGitHub {
owner = "scsibug";
repo = "nostr-rs-relay";
rev = version;
hash = "sha256-x5y/d76Qel8FMIlUn8NdwihWebJsNIt2it2vs/Xlk0Q=";
};

cargoHash = "sha256-1wgBABgcogHCk183AaTwbbSGk8d8FvlZYvw1//5y93I=";

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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5489,6 +5489,8 @@ with pkgs;

nixpkgs-pytools = with python3.pkgs; toPythonApplication nixpkgs-pytools;

nostr-rs-relay = callPackage ../servers/nostr-rs-relay { };

notemap = callPackage ../tools/networking/notemap { };

noteshrink = callPackage ../tools/misc/noteshrink { };
Expand Down

0 comments on commit 688e2b8

Please sign in to comment.