Skip to content

Commit

Permalink
discord-rpc: upstream patch to fix build (#372219)
Browse files Browse the repository at this point in the history
Backport patch from upstream PR discord/discord-rpc#387 to fix build
  • Loading branch information
erratic-pattern authored Jan 11, 2025
1 parent c96099b commit 4aeb84c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/development/libraries/discord-rpc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
rapidjson,
AppKit,
Expand Down Expand Up @@ -32,6 +33,15 @@ stdenv.mkDerivation rec {
"-DBUILD_EXAMPLES=${lib.boolToString buildExamples}"
];

patches = [
# Adds unreleased PR https://github.com/discord/discord-rpc/pull/387
(fetchpatch {
name = "0001-Update-.clang-format.patch";
url = "https://github.com/discord/discord-rpc/commit/dc26645316a1996a10995d9f5fae53ca1caddade.patch";
hash = "sha256-geofgXwfbDsvsYCz92IVFrdvBDiGvMBiFd3GEbsdoHU=";
})
];

meta = with lib; {
description = "Official library to interface with the Discord client";
homepage = "https://github.com/discordapp/discord-rpc";
Expand Down

0 comments on commit 4aeb84c

Please sign in to comment.