summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Cao <nickcao@nichi.co>2024-02-13 11:39:27 -0500
committerGitHub <noreply@github.com>2024-02-13 11:39:27 -0500
commit56267c5863c82601465940338d1c88ada7ed823b (patch)
tree781f58578850ffd9f234c746b1b715e02554b774
parentMerge pull request #288530 from NixOS/backport-286847-to-release-23.11 (diff)
parentsfxr: fix segfault (diff)
downloadnixpkgs-56267c5863c82601465940338d1c88ada7ed823b.tar.gz
Merge pull request #288508 from NixOS/backport-287460-to-release-23.11
[Backport release-23.11] sfxr: fix segfault
-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 1a35fe8830f4..caef7fdd19a0 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 \