diopser: fix build with gcc 11+

This commit is contained in:
Weijia Wang 2023-12-11 18:50:15 +01:00
parent 64891e361b
commit 1b789cb5bc
2 changed files with 10 additions and 2 deletions

View File

@ -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"

View File

@ -3761,7 +3761,7 @@ with pkgs;
dfmt = callPackage ../tools/text/dfmt { };
diopser = callPackage ../applications/audio/diopser { stdenv = gcc10StdenvCompat; };
diopser = callPackage ../applications/audio/diopser { };
diskonaut = callPackage ../tools/misc/diskonaut { };