Merge pull request #280832 from trofi/mikmod-stack-smash

mikmod: fix startup crash on `_FORTIFY_SOURCE=3`

authored by Nick Cao and committed by GitHub bbeff329 25697bac

+12 -1
+12 -1
pkgs/applications/audio/mikmod/default.nix
··· 1 - { lib, stdenv, fetchurl, libmikmod, ncurses }: 1 + { lib, stdenv, fetchurl, fetchpatch, libmikmod, ncurses }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "mikmod"; ··· 8 8 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; 9 9 sha256 = "1k54p8pn3jinha0f2i23ad15pf1pamibzcxjrbzjbklpcz1ipc6v"; 10 10 }; 11 + 12 + patches = [ 13 + # Fix player startup crash due to stack overflow check: 14 + # https://sourceforge.net/p/mikmod/patches/17/ 15 + (fetchpatch { 16 + name = "fortify-source-3.patch"; 17 + url = "https://sourceforge.net/p/mikmod/patches/17/attachment/0001-mikmod-fix-startup-crash-on-_FROTIFY_SOURCE-3-system.patch"; 18 + stripLen = 1; 19 + hash = "sha256-YtbnLTsW3oYPo4r3fh3DUd3DD5ogWrCNlrDcneY03U0="; 20 + }) 21 + ]; 11 22 12 23 buildInputs = [ libmikmod ncurses ]; 13 24