about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-12-12 01:52:37 +0100
committerGitHub <noreply@github.com>2023-12-12 01:52:37 +0100
commit9c5db275ec0d612f4a1f097d2ad4b3fa614b4f2c (patch)
tree63fc8bbed8d04fdf14062c7fe3722b68445cb733 /pkgs/applications/audio
parent9a67c36f6d276654df0b9afb32e34273f2f81367 (diff)
parent1b789cb5bc1727b87d4804e817a2f3df95ddc67b (diff)
Merge pull request #273600 from wegank/diopser-gcc-13
diopser: fix build with gcc 11+
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/diopser/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/audio/diopser/default.nix b/pkgs/applications/audio/diopser/default.nix
index 339eae1a7ca93..67b95aef923f1 100644
--- a/pkgs/applications/audio/diopser/default.nix
+++ b/pkgs/applications/audio/diopser/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
+{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, pkg-config
 , libjack2, alsa-lib, freetype, libX11, libXrandr, libXinerama, libXext, libXcursor
 }:
 
@@ -38,6 +38,14 @@ in  stdenv.mkDerivation rec {
     sha256 = "06y1h895yxh44gp4vxzrna59lf7nlfw7aacd3kk4l1g56jhy9pdx";
   };
 
+  patches = [
+    (fetchpatch {
+      name = "fix-gcc-11-build.patch";
+      url = "https://github.com/robbert-vdh/diopser/commit/a7284439bd4e23455132e7806a214f9db12efae9.patch";
+      hash = "sha256-r3yxhnhPUQ47srhfAKeurpe2xyEBdSvqIbgqs9/6gD4=";
+    })
+  ];
+
   postUnpack = ''
     (
       cd "$sourceRoot"