about summary refs log tree commit diff
path: root/pkgs/applications/audio
diff options
context:
space:
mode:
authorRick van Schijndel <Mindavi@users.noreply.github.com>2024-02-13 11:58:38 +0100
committerGitHub <noreply@github.com>2024-02-13 11:58:38 +0100
commit72770e69618fcec6bd9c1d0b83efcfdb776f5fe8 (patch)
tree7843e240d22887e3851462a50c0c99a73e5af7a6 /pkgs/applications/audio
parent70fb77a6d37291c31c359d2851bd128a0bf01043 (diff)
parent9f17995b41779ca94c7edb55f7ab6153c0300180 (diff)
Merge pull request #287460 from fgaz/sfxr/fix-segfault
sfxr: fix segfault
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r--pkgs/applications/audio/sfxr/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/applications/audio/sfxr/default.nix b/pkgs/applications/audio/sfxr/default.nix
index 1a35fe8830f4a..caef7fdd19a05 100644
--- a/pkgs/applications/audio/sfxr/default.nix
+++ b/pkgs/applications/audio/sfxr/default.nix
@@ -1,5 +1,6 @@
 { lib, stdenv
 , fetchurl
+, fetchpatch
 , pkg-config
 , desktop-file-utils
 , SDL
@@ -17,6 +18,14 @@ stdenv.mkDerivation rec {
     sha256 = "0dfqgid6wzzyyhc0ha94prxax59wx79hqr25r6if6by9cj4vx4ya";
   };
 
+  patches = [
+    # Fix segfault
+    (fetchpatch {
+      url = "https://src.fedoraproject.org/rpms/sfxr/raw/223e58e68857c2018ced635e8209bb44f3616bf8/f/sfxr-sdl-gcc8x.patch";
+      hash = "sha256-etn4AutkNrhEDH9Ep8MhH9JSJEd7V/JXwjQua5uhAmg=";
+    })
+  ];
+
   postPatch = ''
     substituteInPlace Makefile --replace "usr/" ""
     substituteInPlace sdlkit.h --replace \