Skip to content

Commit 3fd6f05

Browse files
discord-rpc: patch to add unreleased PR discord-rpc#387
See discord/discord-rpc#387
1 parent 0155aca commit 3fd6f05

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
From dc26645316a1996a10995d9f5fae53ca1caddade Mon Sep 17 00:00:00 2001
2+
From: Matt Dallmeyer <[email protected]>
3+
Date: Fri, 29 Sep 2023 14:23:15 -0700
4+
Subject: [PATCH 2/2] Update .clang-format
5+
6+
---
7+
.clang-format | 1 -
8+
1 file changed, 1 deletion(-)
9+
10+
diff --git a/.clang-format b/.clang-format
11+
index 1be8390..e8a5e85 100644
12+
--- a/.clang-format
13+
+++ b/.clang-format
14+
@@ -34,7 +34,6 @@ DerivePointerAlignment: false
15+
DisableFormat: false
16+
FixNamespaceComments: true
17+
ForEachMacros: []
18+
-IndentCaseLabels: false
19+
IncludeCategories:
20+
- Regex: '^("|<)stdafx\.h(pp)?("|>)'
21+
Priority: -1
22+
--
23+
2.47.0
24+

pkgs/development/libraries/discord-rpc/default.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ stdenv.mkDerivation rec {
3232
"-DBUILD_EXAMPLES=${lib.boolToString buildExamples}"
3333
];
3434

35+
patches = [
36+
# Adds unreleased PR https://github.com/discord/discord-rpc/pull/387
37+
(fetchpatch {
38+
name = "0002-Update-.clang-format.patch";
39+
url = "https://github.com/discord/discord-rpc/commit/dc26645316a1996a10995d9f5fae53ca1caddade.patch";
40+
hash = "sha256-geofgXwfbDsvsYCz92IVFrdvBDiGvMBiFd3GEbsdoHU=";
41+
})
42+
];
43+
3544
meta = with lib; {
3645
description = "Official library to interface with the Discord client";
3746
homepage = "https://github.com/discordapp/discord-rpc";

0 commit comments

Comments
 (0)