Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / nostr-rs-relay / default.nix
blobf52e8ff16e2386fe934bb2149d571f819171a168
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , rustPlatform
5 , openssl
6 , pkg-config
7 , libiconv
8 , darwin
9 , protobuf
12 rustPlatform.buildRustPackage rec {
13   pname = "nostr-rs-relay";
14   version = "0.8.13";
15   src = fetchFromGitHub {
16     owner = "scsibug";
17     repo = "nostr-rs-relay";
18     rev = version;
19     hash = "sha256-YgYi387b1qlGpjupqgGuLx8muHJ1iMx1sH82UW3TsQg=";
20   };
22   cargoHash = "sha256-CwyX8VlzH/y5LZtaMDd/4yWGCZLczc9bW4AqUzQFFKU=";
24   buildInputs = [ openssl.dev ]
25     ++ lib.optionals stdenv.isDarwin [
26     libiconv
27     darwin.apple_sdk.frameworks.Security
28     darwin.apple_sdk.frameworks.SystemConfiguration
29   ];
31   nativeBuildInputs = [
32     pkg-config # for openssl
33     protobuf
34   ];
36   meta = with lib; {
37     description = "Nostr relay written in Rust";
38     homepage = "https://sr.ht/~gheartsfield/nostr-rs-relay/";
39     changelog = "https://github.com/scsibug/nostr-rs-relay/releases/tag/${version}";
40     maintainers = with maintainers; [ jurraca ];
41     license = licenses.mit;
42   };