about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ar/arrpc/package.nix
blob: aefee98b0eacef3b5c6ba6662756b301d64fff87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildNpmPackage
, fetchFromGitHub
}: buildNpmPackage rec {
  pname = "arrpc";
  version = "3.3.1";

  src = fetchFromGitHub {
    owner = "OpenAsar";
    repo = "arrpc";
    # Release commits are not tagged
    # release: 3.3.0
    rev = "b4796fffe3bf1b1361cc4781024349f7a4f9400e";
    hash = "sha256-iEfV85tRl2KyjodoaSxVHiqweBpLeiCAYWc8+afl/sA=";
  };

  npmDepsHash = "sha256-YlSUGncpY0MyTiCfZcPsfcNx3fR+SCtkOFWbjOPLUzk=";

  dontNpmBuild = true;

  meta = {
    # ideally we would do blob/${version}/changelog.md here
    # upstream does not tag releases
    changelog = "https://github.com/OpenAsar/arrpc/blob/${src.rev}/changelog.md";
    description = "Open Discord RPC server for atypical setups";
    homepage = "https://arrpc.openasar.dev/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ anomalocaris NotAShelf ];
    mainProgram = "arrpc";
  };
}