diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2024-02-09 11:26:34 +0100 |
---|---|---|
committer | Francesco Gazzetta <fgaz@fgaz.me> | 2024-02-09 11:26:38 +0100 |
commit | 9f17995b41779ca94c7edb55f7ab6153c0300180 (patch) | |
tree | 5c6f234c90398d6f7f899416870f4c91a768d9c9 /pkgs/applications/audio | |
parent | 2d3cbf7b8cc80dbaa968f6c5c7f4f7cd40a8a531 (diff) | |
download | nixlib-9f17995b41779ca94c7edb55f7ab6153c0300180.tar nixlib-9f17995b41779ca94c7edb55f7ab6153c0300180.tar.gz nixlib-9f17995b41779ca94c7edb55f7ab6153c0300180.tar.bz2 nixlib-9f17995b41779ca94c7edb55f7ab6153c0300180.tar.lz nixlib-9f17995b41779ca94c7edb55f7ab6153c0300180.tar.xz nixlib-9f17995b41779ca94c7edb55f7ab6153c0300180.tar.zst nixlib-9f17995b41779ca94c7edb55f7ab6153c0300180.zip |
sfxr: fix segfault
Fixes #165010
Diffstat (limited to 'pkgs/applications/audio')
-rw-r--r-- | pkgs/applications/audio/sfxr/default.nix | 9 |
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 \ |