nostr-rs-relay: init at 0.8.9

Add to all-packages.nix and add SystemConfiguration

add to all-packages, remove unused clauses

remove redundant entry in all-packages

add meta section, format

fix meta

use CargoSha instead of explicit cargo.lock path

bump to 0.8.9; add changelog, format

move from misc to servers folder

add line before builder expr

remove comma
This commit is contained in:
Julien Urraca 2023-04-20 18:18:03 -05:00 committed by Sandro Jäckel
parent bb28ce2eda
commit ab7fe9cbd5
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 45 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -5440,6 +5440,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 { };