3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #286659 from NotAShelf/bump-arrpc

This commit is contained in:
Sandro 2024-02-13 11:02:42 +01:00 committed by GitHub
commit dac62f0a4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,41 +1,31 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
, fetchpatch
}:
buildNpmPackage {
}: buildNpmPackage rec {
pname = "arrpc";
version = "3.2.0";
version = "3.3.0";
src = fetchFromGitHub {
owner = "OpenAsar";
repo = "arrpc";
# Release commits are not tagged
# release: 3.2.0
rev = "9c3e981437b75606c74ef058c67d1a8c083ce49a";
hash = "sha256-tsO58q6tqqXCJLjZmLQGt1VtKsuoqWmh5SlnuDtJafg=";
# release: 3.3.0
rev = "c6e23e7eb733ad396d3eebc328404cc656fed581";
hash = "sha256-OeEFNbmGp5SWVdJJwXZUkkNrei9jyuPc+4E960l8VRA=";
};
# Make installation less cumbersome
# Remove after next release
patches = [
(fetchpatch {
# https://github.com/OpenAsar/arrpc/pull/50
url = "https://github.com/OpenAsar/arrpc/commit/7fa6c90204450eb3952ce9cddfecb0a5ba5e4313.patch";
hash = "sha256-qFlrbe2a4x811wpmWUcGDe2CPlt9x3HI+/t0P2v4kPc=";
})
];
npmDepsHash = "sha256-vxx0w6UjwxIK4cgpivtjNbIgkb4wKG4ijSHdP/FeQZ4=";
npmDepsHash = "sha256-YlSUGncpY0MyTiCfZcPsfcNx3fR+SCtkOFWbjOPLUzk=";
dontNpmBuild = true;
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ anomalocaris ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ anomalocaris NotAShelf ];
mainProgram = "arrpc";
};
}