Merge pull request #287460 from fgaz/sfxr/fix-segfault

sfxr: fix segfault

authored by Rick van Schijndel and committed by GitHub 72770e69 70fb77a6

+9
+9
pkgs/applications/audio/sfxr/default.nix
··· 1 1 { lib, stdenv 2 2 , fetchurl 3 + , fetchpatch 3 4 , pkg-config 4 5 , desktop-file-utils 5 6 , SDL ··· 16 17 url = "http://www.drpetter.se/files/sfxr-sdl-${version}.tar.gz"; 17 18 sha256 = "0dfqgid6wzzyyhc0ha94prxax59wx79hqr25r6if6by9cj4vx4ya"; 18 19 }; 20 + 21 + patches = [ 22 + # Fix segfault 23 + (fetchpatch { 24 + url = "https://src.fedoraproject.org/rpms/sfxr/raw/223e58e68857c2018ced635e8209bb44f3616bf8/f/sfxr-sdl-gcc8x.patch"; 25 + hash = "sha256-etn4AutkNrhEDH9Ep8MhH9JSJEd7V/JXwjQua5uhAmg="; 26 + }) 27 + ]; 19 28 20 29 postPatch = '' 21 30 substituteInPlace Makefile --replace "usr/" ""