1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 openssl,
6 pkg-config,
7}:
8
9rustPlatform.buildRustPackage (finalAttrs: {
10 pname = "rsrpc";
11 version = "0.24.2";
12
13 src = fetchFromGitHub {
14 owner = "SpikeHD";
15 repo = "rsRPC";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-Epf84YY7wkQjBbM09NbCSLiVreIgc/OA2g8tN8OmwXQ=";
18 };
19
20 cargoHash = "sha256-fTDAs88GE+ZoaCSJwCAUolTHpigDbkqNVMlbZOO5v1o=";
21
22 nativeBuildInputs = [
23 pkg-config
24 ];
25
26 buildInputs = [
27 openssl
28 ];
29
30 meta = {
31 changelog = "https://github.com/SpikeHD/rsRPC/releases/tag/v${finalAttrs.version}";
32 description = "Rust implementation of the Discord RPC server";
33 homepage = "https://github.com/SpikeHD/rsRPC";
34 license = lib.licenses.mit;
35 maintainers = [ lib.maintainers.pyrox0 ];
36 mainProgram = "rsrpc-cli";
37 };
38})