about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ar/arrpc/package.nix
blob: b103718bb357dc50c490a24c076465cb266b0842 (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.0";

  src = fetchFromGitHub {
    owner = "OpenAsar";
    repo = "arrpc";
    # Release commits are not tagged
    # release: 3.3.0
    rev = "c6e23e7eb733ad396d3eebc328404cc656fed581";
    hash = "sha256-OeEFNbmGp5SWVdJJwXZUkkNrei9jyuPc+4E960l8VRA=";
  };

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